diff options
author | наб <[email protected]> | 2021-05-26 00:44:09 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-05-26 15:25:34 -0700 |
commit | 202498c9583e98152e1e748b8639743943e022d2 (patch) | |
tree | 4c5242a49280d55f36ae6bf4c41c873bab13d41d /module/os | |
parent | a1ca39655ba446c98a2f44b2b1d45d1059738885 (diff) |
linux: don't fall through to 3-arg vfs_getattr
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #12103
Diffstat (limited to 'module/os')
-rw-r--r-- | module/os/linux/spl/spl-generic.c | 4 | ||||
-rw-r--r-- | module/os/linux/zfs/zfs_file_os.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/module/os/linux/spl/spl-generic.c b/module/os/linux/spl/spl-generic.c index 36fdff72a..91eeaccfd 100644 --- a/module/os/linux/spl/spl-generic.c +++ b/module/os/linux/spl/spl-generic.c @@ -586,8 +586,10 @@ spl_getattr(struct file *filp, struct kstat *stat) AT_STATX_SYNC_AS_STAT); #elif defined(HAVE_2ARGS_VFS_GETATTR) rc = vfs_getattr(&filp->f_path, stat); -#else +#elif defined(HAVE_3ARGS_VFS_GETATTR) rc = vfs_getattr(filp->f_path.mnt, filp->f_dentry, 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 99c6ffc95..35e647375 100644 --- a/module/os/linux/zfs/zfs_file_os.c +++ b/module/os/linux/zfs/zfs_file_os.c @@ -279,8 +279,10 @@ zfs_file_getattr(zfs_file_t *filp, zfs_file_attr_t *zfattr) AT_STATX_SYNC_AS_STAT); #elif defined(HAVE_2ARGS_VFS_GETATTR) rc = vfs_getattr(&filp->f_path, &stat); -#else +#elif defined(HAVE_3ARGS_VFS_GETATTR) rc = vfs_getattr(filp->f_path.mnt, filp->f_dentry, &stat); +#else +#error "No available vfs_getattr()" #endif if (rc) return (-rc); |