diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-30 18:49:02 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:59 -0400 |
commit | 8669199438aeb5daf8b17f76bc853286b93f058e (patch) | |
tree | 92fa79f87a7f5118d8834f897b7aad26f4383994 /fs/bcachefs/sysfs.c | |
parent | dde72e182758e455891ff61c11746085db8c27c1 (diff) | |
download | linux-8669199438aeb5daf8b17f76bc853286b93f058e.tar.gz linux-8669199438aeb5daf8b17f76bc853286b93f058e.tar.bz2 linux-8669199438aeb5daf8b17f76bc853286b93f058e.zip |
bcachefs: Print out counters correctly
Most counters aren't in units of sectors, and the ones that are should
just be switched to bytes, for simplicity.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sysfs.c')
-rw-r--r-- | fs/bcachefs/sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/sysfs.c b/fs/bcachefs/sysfs.c index 6be6be881dbd..b2274cb35172 100644 --- a/fs/bcachefs/sysfs.c +++ b/fs/bcachefs/sysfs.c @@ -602,12 +602,12 @@ SHOW(bch2_fs_counters) counter_since_mount = counter - c->counters_on_mount[BCH_COUNTER_##t];\ prt_printf(out, "since mount:"); \ prt_tab(out); \ - prt_human_readable_u64(out, counter_since_mount << 9); \ + prt_human_readable_u64(out, counter_since_mount); \ prt_newline(out); \ \ prt_printf(out, "since filesystem creation:"); \ prt_tab(out); \ - prt_human_readable_u64(out, counter << 9); \ + prt_human_readable_u64(out, counter); \ prt_newline(out); \ } BCH_PERSISTENT_COUNTERS() |