summaryrefslogtreecommitdiff
path: root/libbcachefs/error.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-02-20 22:31:38 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2021-02-20 22:34:09 -0500
commit9e5d774875df1605c23f38f1da6c9dbb49826471 (patch)
tree453894e3c500ede168ec7840c7c0259546ce0bba /libbcachefs/error.c
parentb64369c59fb5fbf87ebdf0a1061a12f7a903cbc1 (diff)
Update bcachefs sources to e2b8120595 bcachefs: Use x-macros for more enums
Diffstat (limited to 'libbcachefs/error.c')
-rw-r--r--libbcachefs/error.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libbcachefs/error.c b/libbcachefs/error.c
index cd46706f..a8ee1db8 100644
--- a/libbcachefs/error.c
+++ b/libbcachefs/error.c
@@ -11,13 +11,13 @@ bool bch2_inconsistent_error(struct bch_fs *c)
set_bit(BCH_FS_ERROR, &c->flags);
switch (c->opts.errors) {
- case BCH_ON_ERROR_CONTINUE:
+ case BCH_ON_ERROR_continue:
return false;
- case BCH_ON_ERROR_RO:
+ case BCH_ON_ERROR_ro:
if (bch2_fs_emergency_read_only(c))
bch_err(c, "emergency read only");
return true;
- case BCH_ON_ERROR_PANIC:
+ case BCH_ON_ERROR_panic:
panic(bch2_fmt(c, "panic after error"));
return true;
default:
@@ -38,10 +38,10 @@ void bch2_io_error_work(struct work_struct *work)
bool dev;
down_write(&c->state_lock);
- dev = bch2_dev_state_allowed(c, ca, BCH_MEMBER_STATE_RO,
+ dev = bch2_dev_state_allowed(c, ca, BCH_MEMBER_STATE_ro,
BCH_FORCE_IF_DEGRADED);
if (dev
- ? __bch2_dev_set_state(c, ca, BCH_MEMBER_STATE_RO,
+ ? __bch2_dev_set_state(c, ca, BCH_MEMBER_STATE_ro,
BCH_FORCE_IF_DEGRADED)
: bch2_fs_emergency_read_only(c))
bch_err(ca,