Skip to contentSkip to conversation

bcachefs: Pass _orig_restart_count to trans_was_restarted

PATCH New Alan Huang 1 participant 1 message Feb 12, 2025

lore
Share & tools
lore

Alan Huang

author
#0 lore raw

PATCH 1/1 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.

---
 fs/bcachefs/btree_iter.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/bcachefs/btree_iter.h +1 -1
index b9538e6e6d65..0045cb7f4c0d 100644
@@ -739,7 +739,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,			\
Signature · 1 line
2.47.0