aboutsummaryrefslogtreecommitdiffstats
path: root/module/os
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-08-24 20:06:53 +1000
committerBrian Behlendorf <[email protected]>2024-09-18 11:23:50 -0700
commit6e3b863df36e9d86134369c8469fe213966a7833 (patch)
tree719c1ed69d0a39ce4dc766fe859d5935679d35d2 /module/os
parentd69bb93c9f54c12c75ef294774b0fd5d3ab72eef (diff)
config: remove HAVE_[24]ARGS_VFS_GETATTR
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Tino Reichardt <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #16479
Diffstat (limited to 'module/os')
-rw-r--r--module/os/linux/spl/spl-generic.c6
-rw-r--r--module/os/linux/zfs/zfs_file_os.c6
2 files changed, 0 insertions, 12 deletions
diff --git a/module/os/linux/spl/spl-generic.c b/module/os/linux/spl/spl-generic.c
index 4221e0f2c..5fe5b302a 100644
--- a/module/os/linux/spl/spl-generic.c
+++ b/module/os/linux/spl/spl-generic.c
@@ -651,14 +651,8 @@ spl_getattr(struct file *filp, struct kstat *stat)
ASSERT(filp);
ASSERT(stat);
-#if defined(HAVE_4ARGS_VFS_GETATTR)
rc = vfs_getattr(&filp->f_path, stat, STATX_BASIC_STATS,
AT_STATX_SYNC_AS_STAT);
-#elif defined(HAVE_2ARGS_VFS_GETATTR)
- rc = vfs_getattr(&filp->f_path, stat);
-#else
-#error "No available vfs_getattr()"
-#endif
if (rc)
return (-rc);
diff --git a/module/os/linux/zfs/zfs_file_os.c b/module/os/linux/zfs/zfs_file_os.c
index 32e71bf37..1a0bb5056 100644
--- a/module/os/linux/zfs/zfs_file_os.c
+++ b/module/os/linux/zfs/zfs_file_os.c
@@ -274,14 +274,8 @@ zfs_file_getattr(zfs_file_t *filp, zfs_file_attr_t *zfattr)
struct kstat stat;
int rc;
-#if defined(HAVE_4ARGS_VFS_GETATTR)
rc = vfs_getattr(&filp->f_path, &stat, STATX_BASIC_STATS,
AT_STATX_SYNC_AS_STAT);
-#elif defined(HAVE_2ARGS_VFS_GETATTR)
- rc = vfs_getattr(&filp->f_path, &stat);
-#else
-#error "No available vfs_getattr()"
-#endif
if (rc)
return (-rc);