bcachefs: BCH_SB_VERSION_UPGRADE_COMPLETE()
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 28 Jun 2023 23:59:56 +0000 (19:59 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:06 +0000 (17:10 -0400)
commit24964e1c5c89e00ca55909ab24ce8d28e2b46406
tree6ca19695501bb5947532e799c319c570e653f16e
parent7c50140fce00120b1dcf674759393267689ca2d8
bcachefs: BCH_SB_VERSION_UPGRADE_COMPLETE()

Version upgrades are not atomic operations: when we do a version upgrade
we need to update the superblock before we start using new features, and
then when the upgrade completes we need to update the superblock again.
This adds a new superblock field so we can detect and handle incomplete
version upgrades.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c
fs/bcachefs/bcachefs.h
fs/bcachefs/bcachefs_format.h
fs/bcachefs/recovery.c
fs/bcachefs/super-io.c