fs: port ->set_acl() to pass mnt_idmap
[linux-block.git] / fs / f2fs / acl.c
index c1c74aa658ae0d0ba0c64ebec1b6af0b99f97ebd..6ced63bce4e4dc2ec557f6fd71405075547633c1 100644 (file)
@@ -276,9 +276,10 @@ static int __f2fs_set_acl(struct user_namespace *mnt_userns,
        return error;
 }
 
-int f2fs_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
+int f2fs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
                 struct posix_acl *acl, int type)
 {
+       struct user_namespace *mnt_userns = mnt_idmap_owner(idmap);
        struct inode *inode = d_inode(dentry);
 
        if (unlikely(f2fs_cp_error(F2FS_I_SB(inode))))