mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
config: remove HAVE_[24]ARGS_VFS_GETATTR
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
committed by
Brian Behlendorf
parent
d69bb93c9f
commit
6e3b863df3
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user