aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <[email protected]>2022-05-02 16:26:28 -0700
committerGitHub <[email protected]>2022-05-02 16:26:28 -0700
commita64d757aa4d4796af540ebe2a098e82c94ccbfcf (patch)
tree163039db007c96aa2575e3e28b635a3738a7b9fb /include
parent159c6fd1540239120f9872d7f4cf8d340fc21c44 (diff)
FreeBSD: Clean up the use of ioflags
- Prefer O_* flags over F* flags that mostly mirror O_* flags anyway, but O_* flags seem to be preferred. - Simplify the code as all the F*SYNC flags were defined as FFSYNC flag. - Don't define FRSYNC flag, so we don't generate unnecessary ZIL commits. - Remove EXCL define, FreeBSD ignores the excl argument for zfs_create() anyway. Reviewed-by: Allan Jude <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Pawel Jakub Dawidek <[email protected]> Closes #13400
Diffstat (limited to 'include')
-rw-r--r--include/os/freebsd/spl/sys/vnode.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/os/freebsd/spl/sys/vnode.h b/include/os/freebsd/spl/sys/vnode.h
index d2c900854..e0f79a111 100644
--- a/include/os/freebsd/spl/sys/vnode.h
+++ b/include/os/freebsd/spl/sys/vnode.h
@@ -136,17 +136,7 @@ vn_flush_cached_data(vnode_t *vp, boolean_t sync)
#define va_blksize va_blocksize
#define MAXOFFSET_T OFF_MAX
-#define EXCL 0
-#define FCREAT O_CREAT
-#define FTRUNC O_TRUNC
-#define FEXCL O_EXCL
-#ifndef FDSYNC
-#define FDSYNC FFSYNC
-#endif
-#define FRSYNC FFSYNC
-#define FSYNC FFSYNC
-#define FOFFMAX 0x00
#define FIGNORECASE 0x00
/*