Skip to content

Commit

Permalink
bcachefs: Pass _orig_restart_count to trans_was_restarted
Browse files Browse the repository at this point in the history
_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>
  • Loading branch information
Alan Huang authored and Kent Overstreet committed Feb 12, 2025
1 parent 9cf6b84 commit 531323a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/bcachefs/btree_iter.h
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ transaction_restart: \
if (!_ret2) \
bch2_trans_verify_not_restarted(_trans, _restart_count);\
\
_ret2 ?: trans_was_restarted(_trans, _restart_count); \
_ret2 ?: trans_was_restarted(_trans, _orig_restart_count); \
})

#define for_each_btree_key_max_continue(_trans, _iter, \
Expand Down

0 comments on commit 531323a

Please sign in to comment.