bcachefs: Fix spurious -BCH_ERR_transaction_restart_nested
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 14 Mar 2024 23:33:56 +0000 (19:33 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 18 Mar 2024 00:53:11 +0000 (20:53 -0400)
commit109ea419cf94afd94ae7840a93bcb1cd3eb5cea9
tree80f2e160ad019a1d88c065c537ff2fbda83d3c2a
parent3ff3475611d5861ebae62e651608b7ccdb054736
bcachefs: Fix spurious -BCH_ERR_transaction_restart_nested

We only need to return transaction_restart_nested when we're inside a
context that's handling transaction restarts.

Also, add a missing check_subdir_count() call.

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