bcachefs: Increment restart count in bch2_trans_begin()
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 12 Aug 2022 16:45:01 +0000 (12:45 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:38 +0000 (17:09 -0400)
commitc497df8b85a7be22373d3d2e57e067285ebcd731
treee2714b1c634e65af4fae611f1ef3f74966e46f9d
parent45b033fa1afd35a8eab0af003ffac9413548f476
bcachefs: Increment restart count in bch2_trans_begin()

Instead of counting transaction restarts, count when the transaction is
restarted: if bch2_trans_begin() was called when the transaction wasn't
restarted we need to ensure restart_count is still incremented.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/btree_iter.c
fs/bcachefs/btree_iter.h
fs/bcachefs/fsck.c