summaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
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 /include/linux/blkdev.h
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 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 2d4dfe82767a..d5d3bb45dfb6 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -841,7 +841,6 @@ extern blk_status_t blk_insert_cloned_request(struct request_queue *q,
841 struct request *rq); 841 struct request *rq);
842extern int blk_rq_append_bio(struct request *rq, struct bio **bio); 842extern int blk_rq_append_bio(struct request *rq, struct bio **bio);
843extern void blk_queue_split(struct request_queue *, struct bio **); 843extern void blk_queue_split(struct request_queue *, struct bio **);
844extern void blk_recount_segments(struct request_queue *, struct bio *);
845extern int scsi_verify_blk_ioctl(struct block_device *, unsigned int); 844extern int scsi_verify_blk_ioctl(struct block_device *, unsigned int);
846extern int scsi_cmd_blk_ioctl(struct block_device *, fmode_t, 845extern int scsi_cmd_blk_ioctl(struct block_device *, fmode_t,
847 unsigned int, void __user *); 846 unsigned int, void __user *);