ceph: update i_files/i_subdirs only when Fs cap is issued
authorYan, Zheng <zyan@redhat.com>
Fri, 27 Apr 2018 03:14:39 +0000 (11:14 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 4 Jun 2018 18:45:55 +0000 (20:45 +0200)
commit2af54a72b585a7cc46fb28845a121635c2540563
tree499dfc97917f461012aff6af9ba5cfc8302dcdb9
parent49a9f4f6714ec0ca2c6ada2ce764fbdd694962ee
ceph: update i_files/i_subdirs only when Fs cap is issued

In MDS, file/subdir counts of a directory inode are protected by
filelock. In request reply without Fs cap, nfiles/nsubdirs can be
stale.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/inode.c