summaryrefslogtreecommitdiff
path: root/fs/bcachefs/alloc_foreground.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2022-12-12 04:37:11 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:49 +0300
commit858536c7cea8bb86511501768ef797d103642498 (patch)
treeb19f4933c893bb2208478f55b7c169d2cb6c8ff8 /fs/bcachefs/alloc_foreground.c
parente9a1da97377f89f09e6b0b484554fe7a0e2dbe3e (diff)
downloadlinux-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/alloc_foreground.c')
-rw-r--r--fs/bcachefs/alloc_foreground.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/bcachefs/alloc_foreground.c b/fs/bcachefs/alloc_foreground.c
index dd47eeb1efc5..c4aee0022fab 100644
--- a/fs/bcachefs/alloc_foreground.c
+++ b/fs/bcachefs/alloc_foreground.c
@@ -1222,9 +1222,6 @@ err:
? -EAGAIN
: -BCH_ERR_ENOSPC_bucket_alloc;
- if (bch2_err_matches(ret, BCH_ERR_insufficient_devices))
- return -EROFS;
-
return ret;
}