Commit 4d05a083 authored by Julian Sun's avatar Julian Sun Committed by Kent Overstreet

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: default avatarJulian Sun <sunjunchao2870@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent ba8c52e2
...@@ -885,7 +885,7 @@ struct bkey_s_c bch2_btree_iter_peek_and_restart_outlined(struct btree_iter *); ...@@ -885,7 +885,7 @@ struct bkey_s_c bch2_btree_iter_peek_and_restart_outlined(struct btree_iter *);
_ret = 0; \ _ret = 0; \
if (unlikely(!_p)) { \ if (unlikely(!_p)) { \
_gfp = GFP_KERNEL; \ _gfp = GFP_KERNEL; \
_ret = drop_locks_do(trans, ((_p = _do), 0)); \ _ret = drop_locks_do(_trans, ((_p = _do), 0)); \
} \ } \
_p; \ _p; \
}) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment