Skip to content

Private error code work

Kent Overstreet linux-bcachefs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bcachefs: Simplify bch2_write_op_error()fs/bcachefs/compress.c fs/bcachefs/io_write.c fs/bcachefs/io_write.h+37 -970 replies
2/3bcachefs: bch2_write_prep_encoded_data() now returns errcodefs/bcachefs/io_write.c+71 -880 replies
3/3bcachefs: EIO cleanupfs/bcachefs/alloc_background.c fs/bcachefs/alloc_foreground.c fs/bcachefs/alloc_foreground.h +10 more+73 -590 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Private error code work

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(-)
Signature · 1 line
2.49.0