]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: add dentry lease metric support
authorXiubo Li <xiubli@redhat.com>
Fri, 20 Mar 2020 03:44:59 +0000 (23:44 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 1 Jun 2020 11:22:51 +0000 (13:22 +0200)
commit71401419dc93daf69628b856bc0b7c7ddd5b4585
tree385a58979017657cc29390c7c1aee07e1f61e476
parent7d585f83d94d61d3bdac5518ba22acded9790263
ceph: add dentry lease metric support

For dentry leases, only count the hit/miss info triggered from the vfs
calls. For the cases like request reply handling and ceph_trim_dentries,
ignore them.

For now, these are only viewable using debugfs. Future patches will
allow the client to send the stats to the MDS.

The output looks like:

item          total           miss            hit
-------------------------------------------------
d_lease       11              7               141

URL: https://tracker.ceph.com/issues/43215
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/Makefile
fs/ceph/debugfs.c
fs/ceph/dir.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h
fs/ceph/metric.c [new file with mode: 0644]
fs/ceph/metric.h [new file with mode: 0644]
fs/ceph/super.h