From: Kent Overstreet Date: Fri, 19 Mar 2021 20:30:01 +0000 (-0400) Subject: bcachefs: Don't list non journal devs in journal_debug_to_text() X-Git-Tag: io_uring-6.7-2023-11-10~119^2~1737 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=ba401eaac380d9598b0a346290a77e43cb4b8211;p=linux-block.git bcachefs: Don't list non journal devs in journal_debug_to_text() Signed-off-by: Kent Overstreet Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/journal.c b/fs/bcachefs/journal.c index d5bbbf619359..22069c277c15 100644 --- a/fs/bcachefs/journal.c +++ b/fs/bcachefs/journal.c @@ -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;