summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/btree_iter.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-12-11 05:18:52 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-01 17:47:43 +0100
commit74e600c19a18bf6c1696f82b6d04d894f9bbdf40 (patch)
tree751127b1672bfaebe78b9343471f387975a233d3 /fs/bcachefs/btree_iter.h
parentbcachefs: bch2_path_get() -> btree_path_idx_t (diff)
downloadlinux-74e600c19a18bf6c1696f82b6d04d894f9bbdf40.tar.xz
linux-74e600c19a18bf6c1696f82b6d04d894f9bbdf40.zip
bcachefs; bch2_path_put() -> btree_path_idx_t
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_iter.h')
-rw-r--r--fs/bcachefs/btree_iter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/btree_iter.h b/fs/bcachefs/btree_iter.h
index 757354c53224..888ff4f2c1a5 100644
--- a/fs/bcachefs/btree_iter.h
+++ b/fs/bcachefs/btree_iter.h
@@ -254,7 +254,7 @@ void bch2_btree_node_iter_fix(struct btree_trans *trans, struct btree_path *,
int bch2_btree_path_relock_intent(struct btree_trans *, struct btree_path *);
-void bch2_path_put(struct btree_trans *, struct btree_path *, bool);
+void bch2_path_put(struct btree_trans *, btree_path_idx_t, bool);
int bch2_trans_relock(struct btree_trans *);
int bch2_trans_relock_notrace(struct btree_trans *);
@@ -360,7 +360,7 @@ static inline void __bch2_btree_iter_set_pos(struct btree_iter *iter, struct bpo
static inline void bch2_btree_iter_set_pos(struct btree_iter *iter, struct bpos new_pos)
{
if (unlikely(iter->update_path))
- bch2_path_put(iter->trans, iter->update_path,
+ bch2_path_put(iter->trans, iter->update_path->idx,
iter->flags & BTREE_ITER_INTENT);
iter->update_path = NULL;