diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-04-08 19:19:05 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-04-08 19:26:30 -0400 |
commit | 986533d8d5b21c8eb512bbb3f0496d3d2a087c5d (patch) | |
tree | 1ac7e802b7deb2dffab6c10d58f22a206878bcf5 /cmd_debug.c | |
parent | 7f77afa955e81da5a55b55e22e7e6f9fee1709a5 (diff) |
Update bcachefs sources to 6ddf061e68 bcachefs: Use a genradix for reading journal entries
Diffstat (limited to 'cmd_debug.c')
-rw-r--r-- | cmd_debug.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cmd_debug.c b/cmd_debug.c index 495c068..3723248 100644 --- a/cmd_debug.c +++ b/cmd_debug.c @@ -624,16 +624,20 @@ int cmd_list_journal(int argc, char *argv[]) if (IS_ERR(c)) die("error opening %s: %s", argv[0], strerror(-PTR_ERR(c))); - struct journal_replay *p; + struct journal_replay *p, **_p; + struct genradix_iter iter; struct jset_entry *entry; struct printbuf buf = PRINTBUF; - list_for_each_entry(p, &c->journal_entries, list) { + genradix_for_each(&c->journal_entries, iter, _p) { + p = *_p; + if (!p) + continue; + bool blacklisted = bch2_journal_seq_is_blacklisted(c, le64_to_cpu(p->j.seq), false); - if (blacklisted) printf("blacklisted "); |