bcachefs: Ensure btree_path consistent with node iterators
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 7 Oct 2021 18:54:50 +0000 (14:54 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:13 +0000 (17:09 -0400)
commit502027a8b2c0f0d46daf948cd1315694a46294e3
tree9c049b96bb3658c8377ca8ed8f453ad904a1854b
parenta9cb0a6706038292bbc22f50546859783ac492bc
bcachefs: Ensure btree_path consistent with node iterators

Btree node iterators want the interior btree_path to point to the same
pos as the returned btree node - this fixes a regression from the
introduction of btree_path, where rewriting/updating keys of btree nodes
(e.g. in bch2_dev_metadata_drop()) via btree node iterators.

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