]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ceph: allow idmapped getattr inode op
authorChristian Brauner <brauner@kernel.org>
Mon, 7 Aug 2023 13:26:20 +0000 (15:26 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 3 Nov 2023 22:28:34 +0000 (23:28 +0100)
Enable ceph_getattr() 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>
fs/ceph/inode.c

index 808b5a69f02851b1b4183f4a8da4207396b9da88..4e7610357d896cceb1f71be3a131e0f223397536 100644 (file)
@@ -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);
 
        /*