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/errcode.h | |
parent | 858536c7cea8bb86511501768ef797d103642498 (diff) | |
download | linux-87ced107f37fc017d34b8f56afeb7daa06c87310.tar.gz linux-87ced107f37fc017d34b8f56afeb7daa06c87310.tar.bz2 linux-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/errcode.h')
-rw-r--r-- | fs/bcachefs/errcode.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/bcachefs/errcode.h b/fs/bcachefs/errcode.h index 96ee72c125d6..bb296edcf4f7 100644 --- a/fs/bcachefs/errcode.h +++ b/fs/bcachefs/errcode.h @@ -84,6 +84,11 @@ x(EROFS, erofs_journal_err) \ x(EROFS, erofs_sb_err) \ x(EROFS, insufficient_devices) \ + x(0, operation_blocked) \ + x(BCH_ERR_operation_blocked, btree_cache_cannibalize_lock_blocked) \ + x(BCH_ERR_operation_blocked, journal_res_get_blocked) \ + x(BCH_ERR_operation_blocked, journal_preres_get_blocked) \ + x(BCH_ERR_operation_blocked, bucket_alloc_blocked) \ x(BCH_ERR_invalid, invalid_sb) \ x(BCH_ERR_invalid_sb, invalid_sb_magic) \ x(BCH_ERR_invalid_sb, invalid_sb_version) \ |