aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Sun <[email protected]>2024-07-21 08:45:47 -0400
committerKent Overstreet <[email protected]>2024-09-09 09:41:48 -0400
commit4d05a083b34f8f31a095402e75cc156fd9c3b257 (patch)
tree14c4ccedb17691a58d6df077b01268a2b6045ed2
parentba8c52e2b115b88a5d5836485c1945f86df3ba5d (diff)
bcachefs: fix macro definition allocate_dropping_locks
The macro allocate_dropping_locks accepts a parameter _trans, but it was not used, rather the variable trans was directly used, which may be a local variable inside a function that calls the macros. Signed-off-by: Julian Sun <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
-rw-r--r--fs/bcachefs/btree_iter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_iter.h b/fs/bcachefs/btree_iter.h
index 140c7b831233..6d87e57745da 100644
--- a/fs/bcachefs/btree_iter.h
+++ b/fs/bcachefs/btree_iter.h
@@ -885,7 +885,7 @@ struct bkey_s_c bch2_btree_iter_peek_and_restart_outlined(struct btree_iter *);
_ret = 0; \
if (unlikely(!_p)) { \
_gfp = GFP_KERNEL; \
- _ret = drop_locks_do(trans, ((_p = _do), 0)); \
+ _ret = drop_locks_do(_trans, ((_p = _do), 0)); \
} \
_p; \
})