Skip to content

block: cleanup on direct access to bvec table(prepare for multipage bvec)

Ming Lei linux-bcache linux-block linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10block: introduce bio helpers for converting to multipage bvecinclude/linux/bio.h+24 -00 replies
2/10block: conver to bio_first_bvec() & bio_first_page()drivers/block/drbd/drbd_bitmap.c drivers/block/zram/zram_drv.c drivers/md/bcache/super.c +5 more+13 -130 replies
3/10fs: convert to bio_last_bvec()fs/btrfs/compression.c fs/btrfs/extent_io.c fs/buffer.c+3 -30 replies
4/10block: bounce: avoid direct access to bvec tableblock/bounce.c+8 -90 replies
5/10block: bounce: don't access bio->bi_io_vec in copy_to_high_bio_irqblock/bounce.c include/linux/bvec.h+20 -50 replies
6/10dm: limit the max bio size as BIO_MAX_PAGES * PAGE_SIZEdrivers/md/dm.c+9 -10 replies
7/10bcache: comment on direct access to bvec tabledrivers/md/bcache/btree.c drivers/md/bcache/util.c+8 -00 replies
8/10block: move bio_alloc_pages() to bcacheblock/bio.c drivers/md/bcache/util.c drivers/md/bcache/util.h +1 more+28 -292 replies
9/10btrfs: avoid access to .bi_vcnt directlyfs/btrfs/extent_io.c fs/btrfs/extent_io.h+6 -50 replies
10/10btrfs: avoid to access bvec table directly for a cloned biofs/btrfs/inode.c+3 -10 replies

Reviews trailers per patch

4 of 10 patches have a Reviewed-by or Acked-by.

PatchColy LiChristoph HellwigDavid SterbaLiu Bo
1/10
2/10
3/10
4/10
5/10
6/10R-b
7/10A-b
8/10
9/10A-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 00/10] block: cleanup on direct access to bvec table(prepare for multipage bvec)

Hi,

This patchse cleans up most of direct access to bvec table in tree, and these patches are the follow-up of patch1 ~ 16 in the patchset of 'block:
support multipage bvec(V3)'[1].

Changes against [1]:
1) split the cleanup patches from [1]
2) address comments from Christoph:
- introduce bio helpers for dealing with the cleanup
- move bio_alloc_pages() to bcache

[1] https://marc.info/?t=150218197600001&r=1&w=2

Thanks,
Ming

Ming Lei (10):
block: introduce bio helpers for converting to multipage bvec
block: conver to bio_first_bvec() & bio_first_page()
fs: convert to bio_last_bvec()
block: bounce: avoid direct access to bvec table
block: bounce: don't access bio->bi_io_vec in copy_to_high_bio_irq
dm: limit the max bio size as BIO_MAX_PAGES * PAGE_SIZE
bcache: comment on direct access to bvec table
block: move bio_alloc_pages() to bcache
btrfs: avoid access to .bi_vcnt directly
btrfs: avoid to access bvec table directly for a cloned bio

 block/bio.c                      | 28 ----------------------------
 block/bounce.c                   | 33 +++++++++++++++++++--------------
 drivers/block/drbd/drbd_bitmap.c |  2 +-
 drivers/block/zram/zram_drv.c    |  2 +-
 drivers/md/bcache/btree.c        |  1 +
 drivers/md/bcache/super.c        |  8 ++++----
 drivers/md/bcache/util.c         | 34 ++++++++++++++++++++++++++++++++++
 drivers/md/bcache/util.h         |  1 +
 drivers/md/dm.c                  | 10 +++++++++-
 fs/btrfs/compression.c           |  4 ++--
 fs/btrfs/extent_io.c             | 11 ++++++-----
 fs/btrfs/extent_io.h             |  2 +-
 fs/btrfs/inode.c                 |  8 +++++---
 fs/buffer.c                      |  2 +-
 fs/f2fs/data.c                   |  2 +-
 include/linux/bio.h              | 25 ++++++++++++++++++++++++-
 include/linux/bvec.h             |  9 +++++++++
 kernel/power/swap.c              |  2 +-
 mm/page_io.c                     |  4 ++--
 19 files changed, 122 insertions(+), 66 deletions(-)
Signature · 1 line
2.9.5