We never want to be returning standard error codes - those are a nightmare to track down when all you have is an error message that says "EIO".
This kills off EIO usage, mostly in io_write.c. Kent Overstreet (3): bcachefs: Simplify bch2_write_op_error() bcachefs: bch2_write_prep_encoded_data() now returns errcode bcachefs: EIO cleanup fs/bcachefs/alloc_background.c | 4 +- fs/bcachefs/alloc_foreground.c | 4 +- fs/bcachefs/alloc_foreground.h | 2 +- fs/bcachefs/checksum.c | 2 +- fs/bcachefs/compress.c | 65 ++++---- fs/bcachefs/data_update.c | 2 +- fs/bcachefs/ec.c | 16 +- fs/bcachefs/ec.h | 2 +- fs/bcachefs/errcode.h | 18 ++- fs/bcachefs/inode.c | 4 +- fs/bcachefs/io_write.c | 277 +++++++++++++-------------------- fs/bcachefs/io_write.h | 9 +- fs/bcachefs/journal_io.c | 2 +- fs/bcachefs/journal_reclaim.c | 6 +- 14 files changed, 175 insertions(+), 238 deletions(-) -- 2.49.0
