diff options
author | Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> | 2023-08-07 16:26:22 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2023-11-04 01:28:34 +0300 |
commit | 79c66a0c8c4a5d341e948dd6a41111957b315f20 (patch) | |
tree | b5fc0a20551b12124bd96fa48be60d34e1e8f907 /fs/ceph/inode.c | |
parent | 8995375fae40a9a014622fd2a0567fe8a2252e66 (diff) | |
download | linux-79c66a0c8c4a5d341e948dd6a41111957b315f20.tar.xz |
ceph: pass idmap to __ceph_setattr
Just pass down the mount's idmapping to __ceph_setattr,
because we will need it later.
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Acked-by: Christian Brauner <brauner@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/inode.c')
-rw-r--r-- | fs/ceph/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 1b0a1ac6ed74..927a336350fc 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -2457,8 +2457,8 @@ out: return ret; } -int __ceph_setattr(struct inode *inode, struct iattr *attr, - struct ceph_iattr *cia) +int __ceph_setattr(struct mnt_idmap *idmap, struct inode *inode, + struct iattr *attr, struct ceph_iattr *cia) { struct ceph_inode_info *ci = ceph_inode(inode); unsigned int ia_valid = attr->ia_valid; @@ -2811,7 +2811,7 @@ int ceph_setattr(struct mnt_idmap *idmap, struct dentry *dentry, ceph_quota_is_max_bytes_exceeded(inode, attr->ia_size)) return -EDQUOT; - err = __ceph_setattr(inode, attr, NULL); + err = __ceph_setattr(idmap, inode, attr, NULL); if (err >= 0 && (attr->ia_valid & ATTR_MODE)) err = posix_acl_chmod(&nop_mnt_idmap, dentry, attr->ia_mode); |