summaryrefslogtreecommitdiff
path: root/fs/ceph
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2023-08-07 15:26:24 +0200
committerIlya Dryomov <idryomov@gmail.com>2023-11-03 23:28:34 +0100
commit2cce72dda2b5c494f6489ba78588c4ce191c6b61 (patch)
tree86113da67b5444758a3bb445bccdbf0c08b80f4a /fs/ceph
parenta04aff2588e05bdefc6abb3f16999312db14c333 (diff)
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>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/acl.c b/fs/ceph/acl.c
index 295db55e4eee..1564eacc253d 100644
--- a/fs/ceph/acl.c
+++ b/fs/ceph/acl.c
@@ -107,7 +107,7 @@ int ceph_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
case ACL_TYPE_ACCESS:
name = XATTR_NAME_POSIX_ACL_ACCESS;
if (acl) {
- ret = posix_acl_update_mode(&nop_mnt_idmap, inode,
+ ret = posix_acl_update_mode(idmap, inode,
&new_mode, &acl);
if (ret)
goto out;