mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 09:21:34 -04:00
bcachefs: Don't list non journal devs in journal_debug_to_text()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
committed by
Kent Overstreet
parent
2c944fa12d
commit
ba401eaac3
@@ -1236,6 +1236,9 @@ void __bch2_journal_debug_to_text(struct printbuf *out, struct journal *j)
|
||||
&c->rw_devs[BCH_DATA_journal]) {
|
||||
struct journal_device *ja = &ca->journal;
|
||||
|
||||
if (!test_bit(ca->dev_idx, c->rw_devs[BCH_DATA_journal].d))
|
||||
continue;
|
||||
|
||||
if (!ja->nr)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user