]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Go rw before journal replay
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 10 Nov 2023 01:41:58 +0000 (20:41 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:37 +0000 (11:47 -0500)
commitbdde9829de1ef3c98edd872c6f181de9fe610cf6
tree90f2ab2bfc425e5f4dfa9f9e4f048c2d7a07f585
parent43c7ede0095d7020ca03113b2fde84b00dd5cd49
bcachefs: Go rw before journal replay

This gets us slightly nicer log messages.

Also, this slightly clarifies synchronization of c->journal_keys; after
we go RW it's in use by multiple threads (so that the btree iterator
code can overlay keys from the journal); so it has to be prepped before
that point.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/recovery.c