From: Christian Brauner Date: Mon, 7 Aug 2023 13:26:20 +0000 (+0200) Subject: ceph: allow idmapped getattr inode op X-Git-Tag: v6.7-rc1~20^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0513043ec491500237d7215bf1ccfed54f292e86;p=thirdparty%2Flinux.git ceph: allow idmapped getattr inode op Enable ceph_getattr() to handle idmapped mounts. This is just a matter of passing down the mount's idmapping. Signed-off-by: Christian Brauner Signed-off-by: Alexander Mikhalitsyn Reviewed-by: Xiubo Li Signed-off-by: Ilya Dryomov --- diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 808b5a69f0285..4e7610357d896 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -3027,7 +3027,7 @@ int ceph_getattr(struct mnt_idmap *idmap, const struct path *path, return err; } - generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat); + generic_fillattr(idmap, request_mask, inode, stat); stat->ino = ceph_present_inode(inode); /*