mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
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 <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Closes #13832
This commit is contained in:
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user