diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-27 13:35:08 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-27 21:04:03 -0500 |
commit | 843707ede687387c91d736c601d3ddee91e9f893 (patch) | |
tree | 50c12cc4237d6915206d8d93a2e537e7fc5926fd | |
parent | 97c86db4f286fef4c7c18b5b96940e64c97e31b4 (diff) | |
download | bcachefs-tools-843707ede687387c91d736c601d3ddee91e9f893.tar.gz |
cmd_list_journal: Apply star_start_of_lines() correctly
In list_journal, we note which journal entries are being ignored - this
was forgetting to mark entries newer than the newest flush.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | cmd_list_journal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd_list_journal.c b/cmd_list_journal.c index 70f7e669..ca214b62 100644 --- a/cmd_list_journal.c +++ b/cmd_list_journal.c @@ -140,11 +140,11 @@ static void journal_entries_print(struct bch_fs *c, unsigned nr_entries, if (le64_to_cpu(p->j.seq) + nr_entries < atomic64_read(&c->journal.seq)) continue; - bool blacklisted = + bool blacklisted = p->ignore || bch2_journal_seq_is_blacklisted(c, le64_to_cpu(p->j.seq), false); - if (!transaction_filter.nr) { + if (transaction_filter.nr) { if (blacklisted) printf("blacklisted "); |