diff options
author | Hunter Shaffer <huntershaffer182456@gmail.com> | 2023-09-25 07:46:28 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:15 +0300 |
commit | 40f7914e8dc87f8530ebbd853036cb370656b947 (patch) | |
tree | 4e036d78fc7e63420eaf19bbb1093942ec58c816 /fs/bcachefs/sb-members.c | |
parent | 9af26120f06e03ee8cdd0f7d9f767f537f5148bd (diff) | |
download | linux-40f7914e8dc87f8530ebbd853036cb370656b947.tar.xz |
bcachefs: Add iops fields to bch_member
Signed-off-by: Hunter Shaffer <huntershaffer182456@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sb-members.c')
-rw-r--r-- | fs/bcachefs/sb-members.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/bcachefs/sb-members.c b/fs/bcachefs/sb-members.c index b9a75eb5a8eb..04bde1aaff9f 100644 --- a/fs/bcachefs/sb-members.c +++ b/fs/bcachefs/sb-members.c @@ -2,6 +2,7 @@ #include "bcachefs.h" #include "disk_groups.h" +#include "opts.h" #include "replicas.h" #include "sb-members.h" #include "super-io.h" @@ -172,6 +173,13 @@ static void member_to_text(struct printbuf *out, prt_units_u64(out, device_size << 9); prt_newline(out); + for (unsigned i = 0; i < BCH_IOPS_NR; i++) { + prt_printf(out, "%s iops:", bch2_iops_measurements[i]); + prt_tab(out); + prt_printf(out, "%u", le32_to_cpu(m.iops[i])); + prt_newline(out); + } + prt_printf(out, "Bucket size:"); prt_tab(out); prt_units_u64(out, bucket_size << 9); |