Skip to content

Commit 6ce26ad

Browse files
author
Kent Overstreet
committed
bcachefs: Fix missing parens in drop_locks_do()
Reported-by: [email protected] Signed-off-by: Kent Overstreet <[email protected]>
1 parent 25989f4 commit 6ce26ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/btree_iter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ __bch2_btree_iter_peek_and_restart(struct btree_trans *trans,
838838
#define drop_locks_do(_trans, _do) \
839839
({ \
840840
bch2_trans_unlock(_trans); \
841-
_do ?: bch2_trans_relock(_trans); \
841+
(_do) ?: bch2_trans_relock(_trans); \
842842
})
843843

844844
#define allocate_dropping_locks_errcode(_trans, _do) \

0 commit comments

Comments
 (0)