bcachefs: Errcodes can now subtype standard error codes
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 18 Sep 2022 19:43:50 +0000 (15:43 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:40 +0000 (17:09 -0400)
commit5c1ef830f6786059f85bebe7501b63dffed0b633
tree3a6f94498dd5f0d4f9d416db36d97ed01cf31373
parent57ce827442c4e7b0f38b14b91c97413c5d779697
bcachefs: Errcodes can now subtype standard error codes

The next patch is going to be adding private error codes for all the
places we return -ENOSPC.

Additionally, this patch updates return paths at all module boundaries
to call bch2_err_class(), to return the standard error code.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/errcode.c
fs/bcachefs/errcode.h
fs/bcachefs/fs-io.c
fs/bcachefs/fs-ioctl.c
fs/bcachefs/fs.c
fs/bcachefs/sysfs.c
fs/bcachefs/xattr.c