bcachefs: Validate bset version field against sb version fields
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 21 Mar 2021 20:03:23 +0000 (16:03 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:56 +0000 (17:08 -0400)
commit84cc758d6b19ae8a92389306fe3510e58a08d90c
treeea89ae207a21ab7bfba24a28b88c3722e2b8dea3
parentd361a26d02b97e3f3c0e1563b62a5f7c32ef2f04
bcachefs: Validate bset version field against sb version fields

The superblock version fields need to be accurate to know whether a
filesystem is supported, thus we should be verifying them.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs.h
fs/bcachefs/btree_io.c
fs/bcachefs/super-io.c