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/crypto.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/crypto.c')
-rw-r--r-- | fs/ceph/crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/crypto.c b/fs/ceph/crypto.c index d692ebfddedb..52b1219699aa 100644 --- a/fs/ceph/crypto.c +++ b/fs/ceph/crypto.c @@ -113,7 +113,7 @@ static int ceph_crypt_set_context(struct inode *inode, const void *ctx, cia.fscrypt_auth = cfa; - ret = __ceph_setattr(inode, &attr, &cia); + ret = __ceph_setattr(&nop_mnt_idmap, inode, &attr, &cia); if (ret == 0) inode_set_flags(inode, S_ENCRYPTED, S_ENCRYPTED); kfree(cia.fscrypt_auth); |