]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
bcachefs: Pass _orig_restart_count to trans_was_restarted
authorAlan Huang <mmpgouride@gmail.com>
Wed, 12 Feb 2025 18:11:01 +0000 (02:11 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 12 Feb 2025 23:40:19 +0000 (18:40 -0500)
_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>
fs/bcachefs/btree_iter.h

index 8c16d9a3ec1d81013d319f04f3b07ee673a99f39..b96157f3dc9c746f6f625cd8598d30be333ec4f8 100644 (file)
@@ -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,                 \