From: Julian Sun Date: Sun, 21 Jul 2024 12:45:47 +0000 (-0400) Subject: bcachefs: fix macro definition allocate_dropping_locks X-Git-Tag: v6.12-rc1~6^2~99 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=4d05a083b34f8f31a095402e75cc156fd9c3b257;p=linux-block.git 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 Signed-off-by: Kent Overstreet --- 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; \ })