summaryrefslogtreecommitdiff
path: root/fs/bcachefs/counters.c
diff options
context:
space:
mode:
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);
}