Skip to content

Commit 2cce72d

Browse files
brauneridryomov
authored andcommitted
ceph: allow idmapped set_acl inode op
Enable ceph_set_acl() to handle idmapped mounts. This is just a matter of passing down the mount's idmapping. Signed-off-by: Christian Brauner <[email protected]> Signed-off-by: Alexander Mikhalitsyn <[email protected]> Reviewed-by: Xiubo Li <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent a04aff2 commit 2cce72d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ceph/acl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ int ceph_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
107107
case ACL_TYPE_ACCESS:
108108
name = XATTR_NAME_POSIX_ACL_ACCESS;
109109
if (acl) {
110-
ret = posix_acl_update_mode(&nop_mnt_idmap, inode,
110+
ret = posix_acl_update_mode(idmap, inode,
111111
&new_mode, &acl);
112112
if (ret)
113113
goto out;

0 commit comments

Comments
 (0)