From: Xiubo Li <xiubli@xxxxxxxxxx> Changed in V4: - A small fix about the total_inodes. Changed in V3: - Resend for V2 just forgot one patch, which is adding some helpers support to simplify the code. Changed in V2: - Add number of inodes that have opened files. - Remove the dir metrics and fold into files. Xiubo Li (2): ceph: add helpers for parsing inode/ci/sb to mdsc ceph: metrics for opened files, pinned caps and opened inodes fs/ceph/caps.c | 30 ++++++++++++++++++++++++++---- fs/ceph/debugfs.c | 11 +++++++++++ fs/ceph/dir.c | 22 ++++++++-------------- fs/ceph/file.c | 17 ++++++++--------- fs/ceph/inode.c | 17 +++++++++++------ fs/ceph/ioctl.c | 6 +++--- fs/ceph/locks.c | 2 +- fs/ceph/metric.c | 14 ++++++++++++++ fs/ceph/metric.h | 7 +++++++ fs/ceph/quota.c | 8 ++++---- fs/ceph/snap.c | 2 +- fs/ceph/super.h | 25 +++++++++++++++++++++++++ fs/ceph/xattr.c | 2 +- 13 files changed, 120 insertions(+), 43 deletions(-) -- 2.18.4