bcachefs: BCH_COMPAT_bformat_overflow_done no longer required
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 6 Aug 2023 14:04:37 +0000 (10:04 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:09 +0000 (17:10 -0400)
commite08e63e44e65761e6eb53fcd568d194f607daa61
tree9128db786cae25b4eddfaccff21a3625885ec946
parent58705da67aedc3f68db322d2529ff52a5cdec0fa
bcachefs: BCH_COMPAT_bformat_overflow_done no longer required

Awhile back, we changed bkey_format generation to ensure that the packed
representation could never represent fields larger than the unpacked
representation.

This was to ensure that bkey_packed_successor() always gave a sensible
result, but in the current code bkey_packed_successor() is only used in
a debug assertion - not for anything important.

This kills the requirement that we've gotten rid of those weird bkey
formats, and instead changes the assertion to check if we're dealing
with an old weird bkey format.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bkey.c
fs/bcachefs/bkey.h
fs/bcachefs/bkey_methods.h
fs/bcachefs/btree_io.c
fs/bcachefs/recovery.c
fs/bcachefs/super.c