bcachefs: Fix an assertion
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 27 Sep 2021 05:56:31 +0000 (01:56 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:13 +0000 (17:09 -0400)
commit71ed0056dc1f03346eabcdaa37272041e5d52fe9
treee40d457dade4b905a7241ba936bc8c0dd5bac530
parent42d237320e9817a94f3a0a2de28156523596b086
bcachefs: Fix an assertion

We can end up in a strange situation where a btree_path points to a node
being freed even after pointers to it should have been replaced by
pointers to the new node - if the btree node has been reused since the
pointer to it was created.

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