bcachefs: Add private error codes for ENOSPC
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 18 Sep 2022 21:10:33 +0000 (17:10 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:40 +0000 (17:09 -0400)
commit098ef98d5bff461c66c3798fbebca7b1c06fdf79
tree02879fcbd6d74a5a05a46ad399a73dac4aafd33b
parent5c1ef830f6786059f85bebe7501b63dffed0b633
bcachefs: Add private error codes for ENOSPC

Continuing the saga of introducing private dedicated error codes for
each error path, this patch converts ENOSPC to error codes that are
subtypes of ENOSPC. We've recently had a test failure where we got
-ENOSPC where we shouldn't have, and didn't have enough information to
tell where it came from, so this patch will solve that problem.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
16 files changed:
fs/bcachefs/alloc_foreground.c
fs/bcachefs/btree_update_leaf.c
fs/bcachefs/buckets.c
fs/bcachefs/disk_groups.c
fs/bcachefs/ec.c
fs/bcachefs/errcode.h
fs/bcachefs/fs-io.c
fs/bcachefs/inode.c
fs/bcachefs/journal.c
fs/bcachefs/journal_sb.c
fs/bcachefs/quota.c
fs/bcachefs/replicas.c
fs/bcachefs/str_hash.h
fs/bcachefs/subvolume.c
fs/bcachefs/super-io.c
fs/bcachefs/super.c