summaryrefslogtreecommitdiffstats
path: root/block/bio.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-07-27 12:23:00 -0400
committerJens Axboe <axboe@kernel.dk>2022-08-02 21:08:53 -0600
commitc55ddd9082f757050183bd0e215aab3af3fc225f (patch)
tree920aa9d6aa69abcb1bfa14c4e954632b0752b5a5 /block/bio.c
parentb6dc6198ebe855d70e6f68d279c4015fe5d73e7b (diff)
downloadlinux-stable-c55ddd9082f757050183bd0e215aab3af3fc225f.tar.gz
linux-stable-c55ddd9082f757050183bd0e215aab3af3fc225f.tar.bz2
linux-stable-c55ddd9082f757050183bd0e215aab3af3fc225f.zip
block: pass struct queue_limits to the bio splitting helpers
Allow using the splitting helpers on just a queue_limits instead of a full request_queue structure. This will eventually allow file systems or remapping drivers to split REQ_OP_ZONE_APPEND bios based on limits calculated as the minimum common capabilities over multiple devices. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Link: https://lore.kernel.org/r/20220727162300.3089193-7-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bio.c')
-rw-r--r--block/bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bio.c b/block/bio.c
index 6f9f883f9a65..0d866d44ce53 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -965,7 +965,7 @@ int bio_add_hw_page(struct request_queue *q, struct bio *bio,
* would create a gap, disallow it.
*/
bvec = &bio->bi_io_vec[bio->bi_vcnt - 1];
- if (bvec_gap_to_prev(q, bvec, offset))
+ if (bvec_gap_to_prev(&q->limits, bvec, offset))
return 0;
}