diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-02-20 19:47:58 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:55 -0400 |
commit | 2436cb9fada98d477bb3508a30e520ab3bfaae3e (patch) | |
tree | 8931dcf95d2ec9b8cecbd22527bf74e00461f355 /fs/bcachefs/replicas.c | |
parent | 41f8b09edc25d8ea1f4cee44a9931deb3cf8b9d6 (diff) | |
download | linux-2436cb9fada98d477bb3508a30e520ab3bfaae3e.tar.gz linux-2436cb9fada98d477bb3508a30e520ab3bfaae3e.tar.bz2 linux-2436cb9fada98d477bb3508a30e520ab3bfaae3e.zip |
bcachefs: Use x-macros for more enums
This patch standardizes all the enums that have associated string tables
(probably more enums should have string tables).
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/replicas.c')
-rw-r--r-- | fs/bcachefs/replicas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/replicas.c b/fs/bcachefs/replicas.c index ddaf833d0bf2..0498c8ac82c8 100644 --- a/fs/bcachefs/replicas.c +++ b/fs/bcachefs/replicas.c @@ -982,7 +982,7 @@ bool bch2_have_enough_devs(struct bch_fs *c, struct bch_devs_mask devs, struct bch_dev *ca = bch_dev_bkey_exists(c, e->devs[i]); nr_online += test_bit(e->devs[i], devs.d); - nr_failed += ca->mi.state == BCH_MEMBER_STATE_FAILED; + nr_failed += ca->mi.state == BCH_MEMBER_STATE_failed; } if (nr_failed == e->nr_devs) |