Skip to content

Commit ceb59ed

Browse files
committed
Use correct gersion of zfs_getattr_fast() for 5.12 kernel
Update to chase that zfs_getattr_fast() will need to have the correct version called where getattr() requires a struct user_namespace* argument. Signed-off-by: Coleman Kane <[email protected]>
1 parent c4745a7 commit ceb59ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

module/os/linux/zfs/zpl_inode.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,11 @@ zpl_getattr_impl(const struct path *path, struct kstat *stat, u32 request_mask,
356356
* XXX request_mask and query_flags currently ignored.
357357
*/
358358

359+
#ifdef HAVE_USERNS_IOPS_GETATTR
360+
error = -zfs_getattr_fast(user_ns, path->dentry->d_inode, stat);
361+
#else
359362
error = -zfs_getattr_fast(path->dentry->d_inode, stat);
363+
#endif
360364
spl_fstrans_unmark(cookie);
361365
ASSERT3S(error, <=, 0);
362366

0 commit comments

Comments
 (0)