diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-12-13 15:17:40 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:49 -0400 |
commit | 87ced107f37fc017d34b8f56afeb7daa06c87310 (patch) | |
tree | 619c930adba59e854911723f750c8260a7fad096 /fs/bcachefs/alloc_foreground.c | |
parent | 858536c7cea8bb86511501768ef797d103642498 (diff) | |
download | lwn-87ced107f37fc017d34b8f56afeb7daa06c87310.tar.gz lwn-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.c | 2 |
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; |