block: remove the i argument to bio_for_each_segment_all
authorChristoph Hellwig <hch@lst.de>
Thu, 25 Apr 2019 07:03:00 +0000 (09:03 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Apr 2019 15:26:13 +0000 (09:26 -0600)
commit2b070cfe582b8e99fec6ada57d2e59e194aae202
tree354961c24c2cc77cdaa66128c5f2a0997bc746e8
parentf936b06ae53815a7633b30ffd8cf5661ac826b3a
block: remove the i argument to bio_for_each_segment_all

We only have two callers that need the integer loop iterator, and they
can easily maintain it themselves.

Suggested-by: Matthew Wilcox <willy@infradead.org>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: David Sterba <dsterba@suse.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Acked-by: Coly Li <colyli@suse.de>
Reviewed-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
24 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/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