bcachefs: Split brain detection
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 28 Jun 2023 01:02:27 +0000 (21:02 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 6 Jan 2024 04:24:19 +0000 (23:24 -0500)
commit0d529663f04be744d6af879889c5b16e46286ce1
treedae3189ea2da879c82ebe738138c9b92e44d139e
parent6b00de06f51c5388f1a7eddd4ad7df8e3b8863b5
bcachefs: Split brain detection

Use the new bch_member->seq, sb->write_time fields to detect split brain
and kick out devices when necessary.

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