summaryrefslogtreecommitdiff
path: root/libbcachefs/ec.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2022-12-13 18:27:31 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2022-12-13 18:27:31 -0500
commit3c0484687d00f3f2818d13c0c6f65123abcf4517 (patch)
treebf288e3d6c1f0c085db0af3fb472f2214c7775f0 /libbcachefs/ec.c
parenta06dee6da2babd19a392ff30a399b89b85018a36 (diff)
Update bcachefs sources to 84505cfd37 bcachefs: Go RW before check_alloc_info()
Diffstat (limited to 'libbcachefs/ec.c')
-rw-r--r--libbcachefs/ec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbcachefs/ec.c b/libbcachefs/ec.c
index 53f0d820..c234c8d5 100644
--- a/libbcachefs/ec.c
+++ b/libbcachefs/ec.c
@@ -942,7 +942,7 @@ static void ec_stripe_create(struct ec_stripe_new *s)
closure_sync(&s->iodone);
if (s->err) {
- if (s->err != -EROFS)
+ if (!bch2_err_matches(s->err, EROFS))
bch_err(c, "error creating stripe: error writing data buckets");
goto err;
}