bcachefs: BCH_SB_LAYOUT_SIZE_BITS_MAX
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 6 May 2024 13:10:29 +0000 (09:10 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 6 May 2024 14:58:17 +0000 (10:58 -0400)
commit71dac2482ad3c8d4a8b8998a96751f009bad895f
treefca99859ccf4373a592600cd9c57c4c80deb07f8
parent88ab10186c44d0a8b90842beab8648b5fd14432d
bcachefs: BCH_SB_LAYOUT_SIZE_BITS_MAX

Define a constant for the max superblock size, to avoid a too-large
shift.

Reported-by: syzbot+a8b0fb419355c91dda7f@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs_format.h
fs/bcachefs/super-io.c