]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
block: allow bio_for_each_segment_all() to iterate over multi-page bvec
authorMing Lei <ming.lei@redhat.com>
Fri, 15 Feb 2019 11:13:19 +0000 (19:13 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 15 Feb 2019 15:40:11 +0000 (08:40 -0700)
commit6dc4f100c175dd0511ae8674786e7c9006cdfbfa
treeb8e5204ca6eec1275187496f2d6c069643e478dc
parent2e1f4f4d2481d8bf111904c3e45fc0c4c94bf76e
block: allow bio_for_each_segment_all() to iterate over multi-page bvec

This patch introduces one extra iterator variable to bio_for_each_segment_all(),
then we can allow bio_for_each_segment_all() to iterate over multi-page bvec.

Given it is just one mechannical & simple change on all bio_for_each_segment_all()
users, this patch does tree-wide change in one single patch, so that we can
avoid to use a temporary helper for this conversion.

Reviewed-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
27 files changed:
block/bio.c
block/bounce.c
drivers/md/bcache/btree.c
drivers/md/dm-crypt.c
drivers/md/raid1.c
drivers/staging/erofs/data.c
drivers/staging/erofs/unzip_vle.c
fs/block_dev.c
fs/btrfs/compression.c
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/inode.c
fs/btrfs/raid56.c
fs/crypto/bio.c
fs/direct-io.c
fs/exofs/ore.c
fs/exofs/ore_raid.c
fs/ext4/page-io.c
fs/ext4/readpage.c
fs/f2fs/data.c
fs/gfs2/lops.c
fs/gfs2/meta_io.c
fs/iomap.c
fs/mpage.c
fs/xfs/xfs_aops.c
include/linux/bio.h
include/linux/bvec.h