From: Kent Overstreet Date: Thu, 30 Mar 2023 22:49:02 +0000 (-0400) Subject: bcachefs: Print out counters correctly X-Git-Tag: io_uring-6.7-2023-11-10~119^2~378 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=8669199438aeb5daf8b17f76bc853286b93f058e;p=linux-block.git 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 --- 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()