diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-02-26 00:48:21 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-14 02:22:25 +0100 |
commit | 2cce3752cec5a895030c8aa534cef3f493145a8e (patch) | |
tree | a6daad7e4c84a8d8de39206377f8f1b0a6fc6f8a /fs/bcachefs/recovery.c | |
parent | bcachefs: improve move_gap() (diff) | |
download | linux-2cce3752cec5a895030c8aa534cef3f493145a8e.tar.xz linux-2cce3752cec5a895030c8aa534cef3f493145a8e.zip |
bcachefs: split out ignore_blacklisted, ignore_not_dirty
prep work for replaying the journal backwards
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to '')
-rw-r--r-- | fs/bcachefs/recovery.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index f11e882de02b..0c579ba8de78 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -366,7 +366,7 @@ static int journal_replay_early(struct bch_fs *c, genradix_for_each(&c->journal_entries, iter, _i) { i = *_i; - if (!i || i->ignore) + if (journal_replay_ignore(i)) continue; vstruct_for_each(&i->j, entry) { @@ -868,7 +868,7 @@ int bch2_fs_recovery(struct bch_fs *c) goto out; genradix_for_each_reverse(&c->journal_entries, iter, i) - if (*i && !(*i)->ignore) { + if (!journal_replay_ignore(*i)) { last_journal_entry = &(*i)->j; break; } @@ -893,7 +893,8 @@ int bch2_fs_recovery(struct bch_fs *c) genradix_for_each_reverse(&c->journal_entries, iter, i) if (*i) { last_journal_entry = &(*i)->j; - (*i)->ignore = false; + (*i)->ignore_blacklisted = false; + (*i)->ignore_not_dirty= false; /* * This was probably a NO_FLUSH entry, * so last_seq was garbage - but we know |