fs: port ->permission() to pass mnt_idmap
[linux-block.git] / fs / posix_acl.c
index 678b86ec2b4c54e7c1a65e7ac86de795f18b779e..1cd8c01508b8e959829d91d41d14032845dc194b 100644 (file)
@@ -1085,7 +1085,7 @@ retry_deleg:
         * We only care about restrictions the inode struct itself places upon
         * us otherwise POSIX ACLs aren't subject to any VFS restrictions.
         */
-       error = may_write_xattr(mnt_userns, inode);
+       error = may_write_xattr(idmap, inode);
        if (error)
                goto out_inode_unlock;
 
@@ -1197,7 +1197,7 @@ retry_deleg:
         * We only care about restrictions the inode struct itself places upon
         * us otherwise POSIX ACLs aren't subject to any VFS restrictions.
         */
-       error = may_write_xattr(mnt_userns, inode);
+       error = may_write_xattr(idmap, inode);
        if (error)
                goto out_inode_unlock;