summaryrefslogtreecommitdiffstats
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-10-22 17:09:57 -0400
commit65d48e35250fe46a560dffa13876830336b152c9 (patch)
tree66141141933b02b33b6caa4f94118af4c782996a /fs/bcachefs/counters.c
parent872c0311675bdb73b29ee74c7f27afc82d4918e9 (diff)
downloadlinux-stable-65d48e35250fe46a560dffa13876830336b152c9.tar.gz
linux-stable-65d48e35250fe46a560dffa13876830336b152c9.tar.bz2
linux-stable-65d48e35250fe46a560dffa13876830336b152c9.zip
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);
}