summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-06-06 06:29:01 -0400
committerJens Axboe <axboe@kernel.dk>2019-06-20 12:29:22 -0400
commit14ccb66b3f585b2bc21e7256c96090abed5a512c (patch)
tree7b0d48d59ee474ac1a590352507c7890c16f1e8d /drivers/md/raid5.c
parentf924cddebc900f7cb10d5538d69523e558fa681c (diff)
block: remove the bi_phys_segments field in struct bio
We only need the number of segments in the blk-mq submission path. Remove the field from struct bio, and return it from a variant of blk_queue_split instead of that it can passed as an argument to those functions that need the value. This also means we stop recounting segments except for cloning and partial segments. To keep the number of arguments in this how path down remove pointless struct request_queue arguments from any of the functions that had it and grew a nr_segs argument. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index da94cbaa1a9e..3de4e13bde98 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -5251,7 +5251,6 @@ static int raid5_read_one_chunk(struct mddev *mddev, struct bio *raid_bio)
5251 rcu_read_unlock(); 5251 rcu_read_unlock();
5252 raid_bio->bi_next = (void*)rdev; 5252 raid_bio->bi_next = (void*)rdev;
5253 bio_set_dev(align_bi, rdev->bdev); 5253 bio_set_dev(align_bi, rdev->bdev);
5254 bio_clear_flag(align_bi, BIO_SEG_VALID);
5255 5254
5256 if (is_badblock(rdev, align_bi->bi_iter.bi_sector, 5255 if (is_badblock(rdev, align_bi->bi_iter.bi_sector,
5257 bio_sectors(align_bi), 5256 bio_sectors(align_bi),