bcachefs: Put bkey invalid check in commit path in a more useful place
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 23 Aug 2023 00:29:35 +0000 (20:29 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:11 +0000 (17:10 -0400)
commitcc07773f158331b5a9f5401e8d50cd7ed43c90ba
treef58d125707bfbf5d30c77a597f8dc3476efba85d
parent71aba590297e9b5f71e760b9336ecb3b44c728ef
bcachefs: Put bkey invalid check in commit path in a more useful place

When doing updates early in recovery, before we can go RW, we still want
to check that keys are valid at commit time - this moves key invalid
checking to before the "btree updates to journal" path.

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