bcachefs: New error message helpers
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 20 Jun 2023 17:49:25 +0000 (13:49 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:04 +0000 (17:10 -0400)
commit1bb3c2a9747c404d23012088fbefb4499b884415
tree450da8adf0cea75a7dda044f4c4b7c3d413c9da0
parenta83e108fc1964b8273c6f51cc62588ee774a5a48
bcachefs: New error message helpers

Add two new helpers for printing error messages with __func__ and
bch2_err_str():
 - bch_err_fn
 - bch_err_msg

Also kill the old error strings in the recovery path, which were causing
us to incorrectly report memory allocation failures - they're not needed
anymore.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
14 files changed:
fs/bcachefs/alloc_background.c
fs/bcachefs/backpointers.c
fs/bcachefs/bcachefs.h
fs/bcachefs/btree_gc.c
fs/bcachefs/buckets.c
fs/bcachefs/ec.c
fs/bcachefs/fsck.c
fs/bcachefs/journal.c
fs/bcachefs/lru.c
fs/bcachefs/move.c
fs/bcachefs/quota.c
fs/bcachefs/recovery.c
fs/bcachefs/subvolume.c
fs/bcachefs/tests.c