diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-22 00:16:31 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-05-20 13:54:48 -0400 |
commit | f3cd24b05dfac667f183c0d12eac8890edb95f62 (patch) | |
tree | 8831dff58cc40359a085532071ed5df11bfa9c33 /fs/bcachefs/rebalance.c | |
parent | a136245957317195bb1aa87040d5ceba05a916b4 (diff) |
bcachefs: Convert to lib/printbuf.cprintbuf_v2
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/rebalance.c')
-rw-r--r-- | fs/bcachefs/rebalance.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/bcachefs/rebalance.c b/fs/bcachefs/rebalance.c index d914892f5339..e557c6f6163e 100644 --- a/fs/bcachefs/rebalance.c +++ b/fs/bcachefs/rebalance.c @@ -263,17 +263,17 @@ void bch2_rebalance_work_to_text(struct printbuf *out, struct bch_fs *c) pr_buf(out, "fullest_dev (%i):", w.dev_most_full_idx); pr_tab(out); - bch2_hprint(out, w.dev_most_full_work << 9); + pr_human_readable_u64(out, w.dev_most_full_work << 9); pr_buf(out, "/"); - bch2_hprint(out, w.dev_most_full_capacity << 9); + pr_human_readable_u64(out, w.dev_most_full_capacity << 9); pr_newline(out); pr_buf(out, "total work:"); pr_tab(out); - bch2_hprint(out, w.total_work << 9); + pr_human_readable_u64(out, w.total_work << 9); pr_buf(out, "/"); - bch2_hprint(out, c->capacity << 9); + pr_human_readable_u64(out, c->capacity << 9); pr_newline(out); pr_buf(out, "rate:"); @@ -288,7 +288,7 @@ void bch2_rebalance_work_to_text(struct printbuf *out, struct bch_fs *c) case REBALANCE_THROTTLED: pr_buf(out, "throttled for %lu sec or ", (r->throttled_until_cputime - jiffies) / HZ); - bch2_hprint(out, + pr_human_readable_u64(out, (r->throttled_until_iotime - atomic64_read(&c->io_clock[WRITE].now)) << 9); pr_buf(out, " io"); |