bcachefs: iter->update_path
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 9 Jan 2022 02:22:31 +0000 (21:22 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:22 +0000 (17:09 -0400)
commit1f2d9192502917a190ef9bbf7541960d129d30fe
tree1c17ec70a196a5ed0d9d08cd45874da2aa4d5208
parenta1e82d35f89793f6347945ab48d799ce1802df87
bcachefs: iter->update_path

With BTREE_ITER_FILTER_SNAPSHOTS, we have to distinguish between the
path where the key was found, and the path for inserting into the
current snapshot. This adds a new field to struct btree_iter for saving
a path for the current snapshot, and plumbs it through
bch2_trans_update().

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_iter.c
fs/bcachefs/btree_iter.h
fs/bcachefs/btree_types.h
fs/bcachefs/btree_update.h
fs/bcachefs/btree_update_leaf.c