bcachefs: Redo checks for sufficient devices
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 7 Feb 2021 04:17:26 +0000 (23:17 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:53 +0000 (17:08 -0400)
commitfcb3431be837d06ae9af6eedde6a6509881664de
tree207bccd6939e15f6c1a7377ef2f8ef355b14fcaa
parent5d428c7c6445fc483f77eef82d17a744eeed73be
bcachefs: Redo checks for sufficient devices

When the replicas mechanism was added, for tracking data by which drives
it's replicated on, the check for whether we have sufficient devices was
never updated to make use of it. This patch finally does that.

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