bcachefs: Ensure we always have a journal pin in interior update path
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 30 Nov 2020 07:08:14 +0000 (02:08 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:48 +0000 (17:08 -0400)
commit04e23a566fa9f41228408a7829b4462fb62e42c9
treec9a5a0939943cf30ea56dac82dfa3f026ed18ad8
parentd7b04163c2e6fbfb3befc047586c4c85069e8db3
bcachefs: Ensure we always have a journal pin in interior update path

For the new nodes an interior btree update makes reachable, updates to
those nodes may be journalled after the btree update starts but before
the transactional part - where we make those nodes reachable. Those
updates need to be kept in the journal until after the btree update
completes, hence we should always get a journal pin at the start of the
interior update.

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