diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-02-24 18:19:32 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:25 -0400 |
commit | eac91bf27f088ecb0676873ff298db2dcd5ff9fa (patch) | |
tree | cd5753dc11eaf6d20f1fb2c4663a0ceea3b8cda1 /fs/bcachefs | |
parent | 25a7723182ee62a8e74b204acbd117e4d6c12341 (diff) |
bcachefs: Fix bch2_journal_pins_to_text()
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>
Diffstat (limited to 'fs/bcachefs')
-rw-r--r-- | fs/bcachefs/journal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/bcachefs/journal.c b/fs/bcachefs/journal.c index 1f26d351697a..279e960f2307 100644 --- a/fs/bcachefs/journal.c +++ b/fs/bcachefs/journal.c @@ -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); |