blk: remove bio_set arg from blk_queue_split()
authorNeilBrown <neilb@suse.com>
Sun, 18 Jun 2017 04:38:57 +0000 (14:38 +1000)
committerJens Axboe <axboe@kernel.dk>
Sun, 18 Jun 2017 18:40:59 +0000 (12:40 -0600)
commitaf67c31fba3b879b241536a48df703a2eee18ebf
tree60b9f32d39c955a79e552b00900e1a6ceb66532b
parente4cdf1a1cb161a648cc1ed7d6148fc3b99a1b3f5
blk: remove bio_set arg from blk_queue_split()

blk_queue_split() is always called with the last arg being q->bio_split,
where 'q' is the first arg.

Also blk_queue_split() sometimes uses the passed-in 'bs' and sometimes uses
q->bio_split.

This is inconsistent and unnecessary.  Remove the last arg and always use
q->bio_split inside blk_queue_split()

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Credit-to: Javier González <jg@lightnvm.io> (Noticed that lightnvm was missed)
Reviewed-by: Javier González <javier@cnexlabs.com>
Tested-by: Javier González <javier@cnexlabs.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
14 files changed:
block/blk-core.c
block/blk-merge.c
block/blk-mq.c
drivers/block/drbd/drbd_req.c
drivers/block/pktcdvd.c
drivers/block/ps3vram.c
drivers/block/rsxx/dev.c
drivers/block/umem.c
drivers/lightnvm/pblk-init.c
drivers/lightnvm/rrpc.c
drivers/md/md.c
drivers/s390/block/dcssblk.c
drivers/s390/block/xpram.c
include/linux/blkdev.h