ceph: add global total_caps to count the mdsc's total caps number
authorXiubo Li <xiubli@redhat.com>
Tue, 30 Jun 2020 07:52:16 +0000 (03:52 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 3 Aug 2020 09:05:15 +0000 (11:05 +0200)
commit4f1d756def68588b88068af1d5a4a3b6dc7e6e2a
treeedfa235e919db5e27474367a2d7ea5e69a367086
parent3e699bd865527004773012da38febdf444fd5fa8
ceph: add global total_caps to count the mdsc's total caps number

This will help to reduce using the global mdsc->mutex lock in many
places.

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/caps.c
fs/ceph/debugfs.c
fs/ceph/mds_client.c
fs/ceph/metric.c
fs/ceph/metric.h