diff options
author | Luís Henriques <lhenriques@suse.de> | 2021-10-29 17:09:28 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2021-11-08 05:29:52 +0300 |
commit | 17e9fc9fca0c4e0d5924f4b92f89c2c2b6b4be15 (patch) | |
tree | 36e170f8c87105336b9be9f05bf12065346ff69e /include/linux/ceph | |
parent | cbed4ff76bbb8083780dcd6ebb5bed2af25b9505 (diff) | |
download | linux-17e9fc9fca0c4e0d5924f4b92f89c2c2b6b4be15.tar.xz |
ceph: clean-up metrics data structures to reduce code duplication
This patch modifies struct ceph_client_metric so that each metric block
(read, write and metadata) becomes an element in a array. This allows to
also re-write the helper functions that handle these blocks, making them
simpler and, above all, reduce the amount of copy&paste every time a new
metric is added.
Thus, for each of these metrics there will be a new struct ceph_metric
entry that'll will contain all the sizes and latencies fields (and a lock).
Note however that the metadata metric doesn't really use the size_fields,
and thus this metric won't be shown in the debugfs '../metrics/size' file.
Signed-off-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux/ceph')
0 files changed, 0 insertions, 0 deletions