fs: port acl to mnt_idmap
[platform/kernel/linux-starfive.git] / fs / ext2 / acl.c
index f20953c..82b17d7 100644 (file)
@@ -228,7 +228,7 @@ ext2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
        umode_t mode = inode->i_mode;
 
        if (type == ACL_TYPE_ACCESS && acl) {
-               error = posix_acl_update_mode(&init_user_ns, inode, &mode,
+               error = posix_acl_update_mode(&nop_mnt_idmap, inode, &mode,
                                              &acl);
                if (error)
                        return error;