Commit 0513043e authored by Christian Brauner's avatar Christian Brauner Committed by Ilya Dryomov
Browse files

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: default avatarChristian Brauner <brauner@kernel.org>
Signed-off-by: default avatarAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Reviewed-by: default avatarXiubo Li <xiubli@redhat.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 09838f1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);

	/*