ceph: acquire Fs caps when getting dir stats
authorJeff Layton <jlayton@kernel.org>
Tue, 3 Nov 2020 19:00:26 +0000 (14:00 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 14 Dec 2020 22:21:47 +0000 (23:21 +0100)
commit81048c00d133512e4b4a848b0653d782a83e5911
tree9a0081078b8001fcf3be582ce854ac9af3810ac3
parent06a1ad438b7b8d4fd689114a305b37cb526ff638
ceph: acquire Fs caps when getting dir stats

We only update the inode's dirstats when we have Fs caps from the MDS.

Declare a new VXATTR_FLAG_DIRSTAT that we set on all dirstats, and have
the vxattr handling code acquire those caps when it's set.

URL: https://tracker.ceph.com/issues/48104
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/xattr.c