From 3d832710f98bbcf7316322fff158bf9ee8a2ee08 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 27 Nov 2023 13:35:08 -0500 Subject: [PATCH] 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 --- cmd_list_journal.c | 4 ++-- 1 file 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 ");