aboutsummaryrefslogtreecommitdiffstats
path: root/include/os/freebsd/spl/sys/vfs.h
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2022-09-02 16:20:10 -0400
committerGitHub <[email protected]>2022-09-02 13:20:10 -0700
commit0b30dc484f7e70bc8bfe53fefc8581d181044efa (patch)
tree84f10f742740d1fff4f79abcd65bf7762c372c6c /include/os/freebsd/spl/sys/vfs.h
parent58e8054bce3f493cc1f38f7177cfdb942fa4deb9 (diff)
FreeBSD: Cleanup dead code from VFS
The vfs_*_feature() macros turn anything that uses them into dead code, so we can delete all of it. As a side effect, zfs_set_fuid_feature() is now identical in module/os/freebsd/zfs/zfs_vnops_os.c and module/os/linux/zfs/zfs_vnops_os.c. A few other functions are identical too. Future cleanup could move these into a common file. Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Richard Yao <[email protected]> Closes #13832
Diffstat (limited to 'include/os/freebsd/spl/sys/vfs.h')
-rw-r--r--include/os/freebsd/spl/sys/vfs.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/os/freebsd/spl/sys/vfs.h b/include/os/freebsd/spl/sys/vfs.h
index 22d57cc47..7f163fcfd 100644
--- a/include/os/freebsd/spl/sys/vfs.h
+++ b/include/os/freebsd/spl/sys/vfs.h
@@ -117,9 +117,5 @@ typedef uint64_t vfs_feature_t;
#define VFSFT_ZEROCOPY_SUPPORTED 0x100000200
/* Support loaning /returning cache buffer */
-#define vfs_set_feature(vfsp, feature) do { } while (0)
-#define vfs_clear_feature(vfsp, feature) do { } while (0)
-#define vfs_has_feature(vfsp, feature) (0)
-
#include <sys/mount.h>
#endif /* _OPENSOLARIS_SYS_VFS_H_ */