Skip to content

Bio allocation and error handling cleanups

David Sterba linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8btrfs: bioset allocations will never fail, adapt our helpersfs/btrfs/extent_io.c+19 -316 replies
2/8btrfs: btrfs_bio_alloc never fails, skip error handlingfs/btrfs/extent_io.c+0 -31 reply
3/8btrfs: btrfs_bio_clone never fails, skip error handlingfs/btrfs/inode.c fs/btrfs/volumes.c+0 -53 replies
4/8btrfs: btrfs_io_bio_alloc never fails, skip error handlingfs/btrfs/check-integrity.c fs/btrfs/disk-io.c fs/btrfs/extent_io.c +2 more+0 -411 reply
5/8btrfs: sink gfp parameter to btrfs_bio_clonefs/btrfs/extent_io.c fs/btrfs/extent_io.h fs/btrfs/inode.c +1 more+5 -51 reply
6/8btrfs: remove redundant parameters from btrfs_bio_allocfs/btrfs/compression.c fs/btrfs/extent_io.c fs/btrfs/extent_io.h+5 -102 replies
7/8btrfs: opencode trivial compressed_bio_alloc, simplify error handlingfs/btrfs/compression.c+4 -191 reply
8/8btrfs: pass bytes to btrfs_bio_allocfs/btrfs/compression.c fs/btrfs/extent_io.c fs/btrfs/extent_io.h+8 -81 reply

Reviews trailers per patch

7 of 8 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigAnand Jain
1/8R-b R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] Bio allocation and error handling cleanups

The error handling can be simplified as we do bio allocations using a bioset as was pointed out by Christoph in https://lkml.kernel.org/r/[email protected]

David Sterba (8):
btrfs: bioset allocations will never fail, adapt our helpers
btrfs: btrfs_bio_alloc never fails, skip error handling
btrfs: btrfs_bio_clone never fails, skip error handling
btrfs: btrfs_io_bio_alloc never fails, skip error handling
btrfs: sink gfp parameter to btrfs_bio_clone
btrfs: remove redundant parameters from btrfs_bio_alloc
btrfs: opencode trivial compressed_bio_alloc, simplify error handling
btrfs: pass bytes to btrfs_bio_alloc

 fs/btrfs/check-integrity.c |  5 ----
 fs/btrfs/compression.c     | 23 +++------------
 fs/btrfs/disk-io.c         |  3 --
 fs/btrfs/extent_io.c       | 71 ++++++++++++++++------------------------------
 fs/btrfs/extent_io.h       |  6 ++--
 fs/btrfs/inode.c           |  6 +---
 fs/btrfs/raid56.c          |  3 --
 fs/btrfs/scrub.c           | 25 ----------------
 fs/btrfs/volumes.c         |  3 +-
 9 files changed, 32 insertions(+), 113 deletions(-)
Signature · 1 line
2.12.0