Skip to content

Commit 0513043

Browse files
brauneridryomov
authored andcommitted
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 <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>
1 parent 09838f1 commit 0513043

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/ceph/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3027,7 +3027,7 @@ int ceph_getattr(struct mnt_idmap *idmap, const struct path *path,
30273027
return err;
30283028
}
30293029

3030-
generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat);
3030+
generic_fillattr(idmap, request_mask, inode, stat);
30313031
stat->ino = ceph_present_inode(inode);
30323032

30333033
/*

0 commit comments

Comments
 (0)