bcachefs: Always check for invalid bkeys in main commit path
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 23 Sep 2023 21:45:03 +0000 (17:45 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:15 +0000 (17:10 -0400)
commitb560e32ef78f8e748b74a27009ee417b9072dd88
tree17842522c71d944ae12cc6b37255db350f5e6a34
parenteebe8a8459f78bbac5a12d0ef76838929d736ad2
bcachefs: Always check for invalid bkeys in main commit path

Previously, we would check for invalid bkeys at transaction commit time,
but only if CONFIG_BCACHEFS_DEBUG=y.

This check is important enough to always be on - it appears there's been
corruption making it into the journal that would have been caught by it.

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