diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-09-04 17:51:16 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-09-21 11:39:48 -0400 |
| commit | 8ed4ba3663318f1e89cec1a5e6a13b84e91fc012 (patch) | |
| tree | 73fff620f8a0fb83b8432dcf889721209dfa1380 /fs/bcachefs/buckets.c | |
| parent | bcachefs: Options for recovery_passes, recovery_passes_exclude (diff) | |
| download | linux-8ed4ba3663318f1e89cec1a5e6a13b84e91fc012.tar.gz linux-8ed4ba3663318f1e89cec1a5e6a13b84e91fc012.zip | |
bcachefs: Move tabstop setup to bch2_dev_usage_to_text()
No reason for it not to be where it's needed.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/buckets.c')
| -rw-r--r-- | fs/bcachefs/buckets.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/bcachefs/buckets.c b/fs/bcachefs/buckets.c index 4a0f55dc78c4..4abd22d7e3f8 100644 --- a/fs/bcachefs/buckets.c +++ b/fs/bcachefs/buckets.c @@ -75,6 +75,15 @@ void bch2_dev_usage_to_text(struct printbuf *out, struct bch_dev *ca, struct bch_dev_usage *usage) { + if (out->nr_tabstops < 5) { + printbuf_tabstops_reset(out); + printbuf_tabstop_push(out, 12); + printbuf_tabstop_push(out, 16); + printbuf_tabstop_push(out, 16); + printbuf_tabstop_push(out, 16); + printbuf_tabstop_push(out, 16); + } + prt_printf(out, "\tbuckets\rsectors\rfragmented\r\n"); for (unsigned i = 0; i < BCH_DATA_NR; i++) { |
