bcachefs: Fix bkey format calculation
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 13 Aug 2023 23:34:02 +0000 (19:34 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:11 +0000 (17:10 -0400)
commit029b85fe417c36b5689093dd4861c7980299a50f
tree867c425d1a01109c30200ebb9515e293dfbbdedb
parentc8ef8c3eb573ae2d7f7f41d93f0e34b8f6dfcd6f
bcachefs: Fix bkey format calculation

For extents, we increase the number of bits of the size field to allow
extents to get bigger due to merging - but this code didn't check for
overflow.

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