bcachefs: fsck: Fix nested transaction handling
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 22 Jul 2022 10:57:05 +0000 (06:57 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:37 +0000 (17:09 -0400)
commit0763c552e7ef024ce6dbc9cbc828b8715dff251c
tree8d4239967ad130502865800b8ba7db8c363c6305
parent91f1b9fdd2c02a7375e46bb2628870f3c6116072
bcachefs: fsck: Fix nested transaction handling

This uses the new trans->restart count to make sure we always correctly
return -BCH_ERR_transaction_restart_nested when we restart a nested
transaction - eliminating some other hacks and preparing for new
assertions.

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