mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Reviewed-by: Ming Lei <[email protected]> Credit-to: Javier González <[email protected]> (Noticed that lightnvm was missed) Reviewed-by: Javier González <[email protected]> Tested-by: Javier González <[email protected]> Signed-off-by: NeilBrown <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
e4cdf1a1cb
commit
af67c31fba
14 changed files with 18 additions and 20 deletions
|
|
@ -845,7 +845,7 @@ dcssblk_make_request(struct request_queue *q, struct bio *bio)
|
|||
unsigned long source_addr;
|
||||
unsigned long bytes_done;
|
||||
|
||||
blk_queue_split(q, &bio, q->bio_split);
|
||||
blk_queue_split(q, &bio);
|
||||
|
||||
bytes_done = 0;
|
||||
dev_info = bio->bi_bdev->bd_disk->private_data;
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ static blk_qc_t xpram_make_request(struct request_queue *q, struct bio *bio)
|
|||
unsigned long page_addr;
|
||||
unsigned long bytes;
|
||||
|
||||
blk_queue_split(q, &bio, q->bio_split);
|
||||
blk_queue_split(q, &bio);
|
||||
|
||||
if ((bio->bi_iter.bi_sector & 7) != 0 ||
|
||||
(bio->bi_iter.bi_size & 4095) != 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue