diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-12-13 23:17:40 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:49 +0300 |
commit | 87ced107f37fc017d34b8f56afeb7daa06c87310 (patch) | |
tree | 619c930adba59e854911723f750c8260a7fad096 /fs/bcachefs/journal.h | |
parent | 858536c7cea8bb86511501768ef797d103642498 (diff) | |
download | linux-87ced107f37fc017d34b8f56afeb7daa06c87310.tar.xz |
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/journal.h')
-rw-r--r-- | fs/bcachefs/journal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/journal.h b/fs/bcachefs/journal.h index 1c7508333432..024cea9f5902 100644 --- a/fs/bcachefs/journal.h +++ b/fs/bcachefs/journal.h @@ -460,7 +460,7 @@ static inline int bch2_journal_preres_get(struct journal *j, return 0; if (flags & JOURNAL_RES_GET_NONBLOCK) - return -EAGAIN; + return -BCH_ERR_journal_preres_get_blocked; return __bch2_journal_preres_get(j, res, new_u64s, flags); } |