bcachefs: Don't mark superblocks past end of usable space
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 9 Jun 2021 02:50:30 +0000 (22:50 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:05 +0000 (17:09 -0400)
commit224ec3e677ca82eb4216a0916ce7b04f401e90e7
tree9f74bcd61305e34ccab5e98b3d07e8835e30ccf5
parent7138f220973307d4f130eec33e4cb3f571a0f413
bcachefs: Don't mark superblocks past end of usable space

bcachefs-tools recently started putting a backup superblock at the end
of the device. This causes a problem if the bucket size doesn't divide
the device size - but we can fix it by just skipping marking that part.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/buckets.c
fs/bcachefs/super.c