diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-12-11 20:37:11 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:49 -0400 |
commit | 858536c7cea8bb86511501768ef797d103642498 (patch) | |
tree | b19f4933c893bb2208478f55b7c169d2cb6c8ff8 /fs/bcachefs/super-io.c | |
parent | e9a1da97377f89f09e6b0b484554fe7a0e2dbe3e (diff) | |
download | linux-858536c7cea8bb86511501768ef797d103642498.tar.gz linux-858536c7cea8bb86511501768ef797d103642498.tar.bz2 linux-858536c7cea8bb86511501768ef797d103642498.zip |
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/super-io.c')
-rw-r--r-- | fs/bcachefs/super-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c index 8dfe92d7eb77..ff27ae1839a8 100644 --- a/fs/bcachefs/super-io.c +++ b/fs/bcachefs/super-io.c @@ -868,7 +868,7 @@ int bch2_write_super(struct bch_fs *c) le64_to_cpu(ca->sb_read_scratch->seq), ca->disk_sb.seq); percpu_ref_put(&ca->io_ref); - ret = -EROFS; + ret = -BCH_ERR_erofs_sb_err; goto out; } @@ -878,7 +878,7 @@ int bch2_write_super(struct bch_fs *c) le64_to_cpu(ca->sb_read_scratch->seq), ca->disk_sb.seq); percpu_ref_put(&ca->io_ref); - ret = -EROFS; + ret = -BCH_ERR_erofs_sb_err; goto out; } } |