Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <brauner@kernel.org>
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>

authored by

Christian Brauner and committed by
Ilya Dryomov
2cce72dd a04aff25

+1 -1
+1 -1
fs/ceph/acl.c
··· 107 107 case ACL_TYPE_ACCESS: 108 108 name = XATTR_NAME_POSIX_ACL_ACCESS; 109 109 if (acl) { 110 - ret = posix_acl_update_mode(&nop_mnt_idmap, inode, 110 + ret = posix_acl_update_mode(idmap, inode, 111 111 &new_mode, &acl); 112 112 if (ret) 113 113 goto out;