summaryrefslogtreecommitdiff
path: root/fs/bcachefs/counters.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-03-14 15:35:57 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-05-12 19:42:30 -0400
commit1e40d59b5340ca37edb87890db841f4a3ae72704 (patch)
tree8b2dcd06b2b8da690f2533729dba52063eb1fdf7 /fs/bcachefs/counters.c
parent3911ad7ded65fa58169a4d6099eba92d1e7624f8 (diff)
bcachefs: Private error codes: ENOMEM
This adds private error codes for most (but not all) of our ENOMEM uses, which makes it easier to track down assorted allocation failures. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/counters.c')
-rw-r--r--fs/bcachefs/counters.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/counters.c b/fs/bcachefs/counters.c
index edd1b2537f48..e5587bc5a2b7 100644
--- a/fs/bcachefs/counters.c
+++ b/fs/bcachefs/counters.c
@@ -96,7 +96,7 @@ int bch2_fs_counters_init(struct bch_fs *c)
{
c->counters = __alloc_percpu(sizeof(u64) * BCH_COUNTER_NR, sizeof(u64));
if (!c->counters)
- return -ENOMEM;
+ return -BCH_ERR_ENOMEM_fs_counters_init;
return bch2_sb_counters_to_cpu(c);
}