diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-20 10:16:48 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-24 09:50:36 -0400 |
| commit | 8a9f3d058279ed0f99114e0449d129fb5abc5eca (patch) | |
| tree | de43cdc0d16ded798548b49b6ceeae51ba19d02d /fs/bcachefs/alloc_foreground.c | |
| parent | bcachefs: bch2_write_prep_encoded_data() now returns errcode (diff) | |
| download | linux-8a9f3d058279ed0f99114e0449d129fb5abc5eca.tar.gz linux-8a9f3d058279ed0f99114e0449d129fb5abc5eca.zip | |
bcachefs: EIO cleanup
Replace these with proper private error codes, so that when we get an
error message we're not sifting through the entire codebase to see where
it came from.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_foreground.c')
| -rw-r--r-- | fs/bcachefs/alloc_foreground.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/alloc_foreground.c b/fs/bcachefs/alloc_foreground.c index 1759c15a7745..95aafc232290 100644 --- a/fs/bcachefs/alloc_foreground.c +++ b/fs/bcachefs/alloc_foreground.c @@ -127,14 +127,14 @@ void __bch2_open_bucket_put(struct bch_fs *c, struct open_bucket *ob) void bch2_open_bucket_write_error(struct bch_fs *c, struct open_buckets *obs, - unsigned dev) + unsigned dev, int err) { struct open_bucket *ob; unsigned i; open_bucket_for_each(c, obs, ob, i) if (ob->dev == dev && ob->ec) - bch2_ec_bucket_cancel(c, ob); + bch2_ec_bucket_cancel(c, ob, err); } static struct open_bucket *bch2_open_bucket_alloc(struct bch_fs *c) |
