summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/alloc_foreground.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2022-12-13 15:17:40 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:49 -0400
commit87ced107f37fc017d34b8f56afeb7daa06c87310 (patch)
tree619c930adba59e854911723f750c8260a7fad096 /fs/bcachefs/alloc_foreground.c
parent858536c7cea8bb86511501768ef797d103642498 (diff)
downloadlinux-stable-87ced107f37fc017d34b8f56afeb7daa06c87310.tar.gz
linux-stable-87ced107f37fc017d34b8f56afeb7daa06c87310.tar.bz2
linux-stable-87ced107f37fc017d34b8f56afeb7daa06c87310.zip
bcachefs: Convert EAGAIN errors to private error codes
More error code cleanup, for better error messages and debugability. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_foreground.c')
-rw-r--r--fs/bcachefs/alloc_foreground.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/alloc_foreground.c b/fs/bcachefs/alloc_foreground.c
index c4aee0022fab..3219c37d9262 100644
--- a/fs/bcachefs/alloc_foreground.c
+++ b/fs/bcachefs/alloc_foreground.c
@@ -1219,7 +1219,7 @@ err:
if (bch2_err_matches(ret, BCH_ERR_open_buckets_empty) ||
bch2_err_matches(ret, BCH_ERR_freelist_empty))
return cl
- ? -EAGAIN
+ ? -BCH_ERR_bucket_alloc_blocked
: -BCH_ERR_ENOSPC_bucket_alloc;
return ret;