aboutsummaryrefslogtreecommitdiff
path: root/fs/bcachefs/btree_types.h
diff options
context:
space:
mode:
authorGravatar Kent Overstreet <kent.overstreet@gmail.com> 2022-01-08 21:22:31 -0500
committerGravatar Kent Overstreet <kent.overstreet@linux.dev> 2023-10-22 17:09:22 -0400
commit1f2d9192502917a190ef9bbf7541960d129d30fe (patch)
tree1c17ec70a196a5ed0d9d08cd45874da2aa4d5208 /fs/bcachefs/btree_types.h
parentbcachefs: Refactor bch2_btree_iter() (diff)
downloadlinux-1f2d9192502917a190ef9bbf7541960d129d30fe.tar.gz
linux-1f2d9192502917a190ef9bbf7541960d129d30fe.tar.bz2
linux-1f2d9192502917a190ef9bbf7541960d129d30fe.zip
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>
Diffstat (limited to 'fs/bcachefs/btree_types.h')
-rw-r--r--fs/bcachefs/btree_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_types.h b/fs/bcachefs/btree_types.h
index 794726c4efd7..9828bdd924af 100644
--- a/fs/bcachefs/btree_types.h
+++ b/fs/bcachefs/btree_types.h
@@ -276,6 +276,7 @@ static inline struct btree_path_level *path_l(struct btree_path *path)
struct btree_iter {
struct btree_trans *trans;
struct btree_path *path;
+ struct btree_path *update_path;
enum btree_id btree_id:4;
unsigned min_depth:4;