bcachefs: Fix bch2_journal_pins_to_text()
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 24 Feb 2022 23:19:32 +0000 (18:19 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:25 +0000 (17:09 -0400)
When key cache pins were put onto their own list, we neglected to update
bch2_journal_pins_to_text() to print them.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/journal.c

index 1f26d351697a85471d153f942158fc72f9bb648a..279e960f23078b21b99af68cca099ccbcd8d61aa 100644 (file)
@@ -1290,6 +1290,10 @@ void bch2_journal_pins_to_text(struct printbuf *out, struct journal *j)
                pr_buf(out, "%llu: count %u\n",
                       i, atomic_read(&pin_list->count));
 
+               list_for_each_entry(pin, &pin_list->key_cache_list, list)
+                       pr_buf(out, "\t%px %ps\n",
+                              pin, pin->flush);
+
                list_for_each_entry(pin, &pin_list->list, list)
                        pr_buf(out, "\t%px %ps\n",
                               pin, pin->flush);