Skip to content

Commit ef05bdf

Browse files
author
Kent Overstreet
committed
bcachefs: Add missing printbuf_tabstops_reset() calls
Fixes warnings from bch2_print_allocator_stuck() Signed-off-by: Kent Overstreet <[email protected]>
1 parent 67c5641 commit ef05bdf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

fs/bcachefs/alloc_foreground.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,6 +1703,7 @@ void bch2_fs_alloc_debug_to_text(struct printbuf *out, struct bch_fs *c)
17031703
for (unsigned i = 0; i < ARRAY_SIZE(c->open_buckets); i++)
17041704
nr[c->open_buckets[i].data_type]++;
17051705

1706+
printbuf_tabstops_reset(out);
17061707
printbuf_tabstop_push(out, 24);
17071708

17081709
percpu_down_read(&c->mark_lock);
@@ -1736,6 +1737,7 @@ void bch2_dev_alloc_debug_to_text(struct printbuf *out, struct bch_dev *ca)
17361737
for (unsigned i = 0; i < ARRAY_SIZE(c->open_buckets); i++)
17371738
nr[c->open_buckets[i].data_type]++;
17381739

1740+
printbuf_tabstops_reset(out);
17391741
printbuf_tabstop_push(out, 12);
17401742
printbuf_tabstop_push(out, 16);
17411743
printbuf_tabstop_push(out, 16);

fs/bcachefs/journal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,8 +1420,8 @@ void __bch2_journal_debug_to_text(struct printbuf *out, struct journal *j)
14201420
unsigned long now = jiffies;
14211421
u64 nr_writes = j->nr_flush_writes + j->nr_noflush_writes;
14221422

1423-
if (!out->nr_tabstops)
1424-
printbuf_tabstop_push(out, 28);
1423+
printbuf_tabstops_reset(out);
1424+
printbuf_tabstop_push(out, 28);
14251425
out->atomic++;
14261426

14271427
rcu_read_lock();

0 commit comments

Comments
 (0)