aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/linux/zfs/zpl_xattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/os/linux/zfs/zpl_xattr.c')
-rw-r--r--module/os/linux/zfs/zpl_xattr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/os/linux/zfs/zpl_xattr.c b/module/os/linux/zfs/zpl_xattr.c
index f272054e0..dc0113d38 100644
--- a/module/os/linux/zfs/zpl_xattr.c
+++ b/module/os/linux/zfs/zpl_xattr.c
@@ -1329,7 +1329,7 @@ __zpl_xattr_acl_set_access(zidmap_t *mnt_ns,
if (IS_ERR(acl))
return (PTR_ERR(acl));
else if (acl) {
- error = zpl_posix_acl_valid(ip, acl);
+ error = posix_acl_valid(ip->i_sb->s_user_ns, acl);
if (error) {
zpl_posix_acl_release(acl);
return (error);
@@ -1375,7 +1375,7 @@ __zpl_xattr_acl_set_default(zidmap_t *mnt_ns,
if (IS_ERR(acl))
return (PTR_ERR(acl));
else if (acl) {
- error = zpl_posix_acl_valid(ip, acl);
+ error = posix_acl_valid(ip->i_sb->s_user_ns, acl);
if (error) {
zpl_posix_acl_release(acl);
return (error);