Skip to content

Commit 531323a

Browse files
alanskindKent Overstreet
authored andcommitted
bcachefs: Pass _orig_restart_count to trans_was_restarted
_orig_restart_count is unused now, according to the logic, trans_was_restarted should be using _orig_restart_count. Signed-off-by: Alan Huang <mmpgouride@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent 9cf6b84 commit 531323a

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
@@ -751,7 +751,7 @@ transaction_restart: \
751751
if (!_ret2) \
752752
bch2_trans_verify_not_restarted(_trans, _restart_count);\
753753
\
754-
_ret2 ?: trans_was_restarted(_trans, _restart_count); \
754+
_ret2 ?: trans_was_restarted(_trans, _orig_restart_count); \
755755
})
756756

757757
#define for_each_btree_key_max_continue(_trans, _iter, \

0 commit comments

Comments
 (0)