diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-05-19 23:55:02 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-05-20 11:37:26 +0200 |
commit | 6ce26ad376bdc65c2bc6d4ef7b8a939bf1bd19dc (patch) | |
tree | ef0a370abfd62528c98566daf8900957028b8cfd /fs/bcachefs/btree_iter.h | |
parent | bcachefs: Improve bch2_assert_pos_locked() (diff) | |
download | linux-6ce26ad376bdc65c2bc6d4ef7b8a939bf1bd19dc.tar.xz linux-6ce26ad376bdc65c2bc6d4ef7b8a939bf1bd19dc.zip |
bcachefs: Fix missing parens in drop_locks_do()
Reported-by: syzbot+95db43b0a06f157ee865@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to '')
-rw-r--r-- | fs/bcachefs/btree_iter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_iter.h b/fs/bcachefs/btree_iter.h index eab2a25bdc7a..798eb1c47966 100644 --- a/fs/bcachefs/btree_iter.h +++ b/fs/bcachefs/btree_iter.h @@ -838,7 +838,7 @@ __bch2_btree_iter_peek_and_restart(struct btree_trans *trans, #define drop_locks_do(_trans, _do) \ ({ \ bch2_trans_unlock(_trans); \ - _do ?: bch2_trans_relock(_trans); \ + (_do) ?: bch2_trans_relock(_trans); \ }) #define allocate_dropping_locks_errcode(_trans, _do) \ |