diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-12-12 04:37:11 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:49 +0300 |
commit | 858536c7cea8bb86511501768ef797d103642498 (patch) | |
tree | b19f4933c893bb2208478f55b7c169d2cb6c8ff8 /fs/bcachefs/movinggc.c | |
parent | e9a1da97377f89f09e6b0b484554fe7a0e2dbe3e (diff) | |
download | linux-858536c7cea8bb86511501768ef797d103642498.tar.xz |
bcachefs: Convert EROFS errors to private error codes
More error code improvements - this gets us more useful error messages.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-rw-r--r-- | fs/bcachefs/movinggc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c index 66f18f711d53..9c55a88a2b08 100644 --- a/fs/bcachefs/movinggc.c +++ b/fs/bcachefs/movinggc.c @@ -319,7 +319,7 @@ static int bch2_copygc(struct bch_fs *c) writepoint_ptr(&c->copygc_write_point), false, copygc_pred, NULL); - if (ret < 0 && ret != -EROFS) + if (ret < 0 && !bch2_err_matches(ret, EROFS)) bch_err(c, "error from bch2_move_data() in copygc: %s", bch2_err_str(ret)); if (ret) return ret; |