diff options
author | 2025-02-13 02:11:01 +0800 | |
---|---|---|
committer | 2025-02-12 18:40:19 -0500 | |
commit | 531323a2efc3fbe20b540e3f41ecc94d68e74b76 (patch) | |
tree | 846ef4ca51ececdf272ef7b98ff229f465a0377d | |
parent | bcachefs: CONFIG_BCACHEFS_INJECT_TRANSACTION_RESTARTS (diff) | |
download | wireguard-linux-531323a2efc3fbe20b540e3f41ecc94d68e74b76.tar.xz wireguard-linux-531323a2efc3fbe20b540e3f41ecc94d68e74b76.zip |
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>
-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 8c16d9a3ec1d..b96157f3dc9c 100644 --- a/fs/bcachefs/btree_iter.h +++ b/fs/bcachefs/btree_iter.h @@ -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, \ |