fs: port ->set_acl() to pass mnt_idmap
[linux-block.git] / fs / xfs / xfs_acl.c
index a05f44eb81782c6154ffabd0ec9b6272070bb1fe..a2d2c117a07675ce827978787c3ff21ed3fafe73 100644 (file)
@@ -242,9 +242,10 @@ xfs_acl_set_mode(
 }
 
 int
-xfs_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
+xfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
            struct posix_acl *acl, int type)
 {
+       struct user_namespace *mnt_userns = mnt_idmap_owner(idmap);
        umode_t mode;
        bool set_mode = false;
        int error = 0;