diff options
author | Christoph Hellwig <hch@lst.de> | 2020-05-12 10:55:46 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-13 04:36:28 +0200 |
commit | e4581105771b3523ced88f781eb2672195d217aa (patch) | |
tree | 2dbfc03873daddeb558d7093f770d8bd66660989 /block/blk.h | |
parent | block: provide fallbacks for blk_queue_zone_is_seq and blk_queue_zone_no (diff) | |
download | linux-e4581105771b3523ced88f781eb2672195d217aa.tar.xz linux-e4581105771b3523ced88f781eb2672195d217aa.zip |
block: rename __bio_add_pc_page to bio_add_hw_page
Rename __bio_add_pc_page() to bio_add_hw_page() and explicitly pass in a
max_sectors argument.
This max_sectors argument can be used to specify constraints from the
hardware.
Signed-off-by: Christoph Hellwig <hch@lst.de>
[ jth: rebased and made public for blk-map.c ]
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r-- | block/blk.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk.h b/block/blk.h index 8c3f557dd898..e5cd350ca379 100644 --- a/block/blk.h +++ b/block/blk.h @@ -452,8 +452,8 @@ static inline void part_nr_sects_write(struct hd_struct *part, sector_t size) struct request_queue *__blk_alloc_queue(int node_id); -int __bio_add_pc_page(struct request_queue *q, struct bio *bio, +int bio_add_hw_page(struct request_queue *q, struct bio *bio, struct page *page, unsigned int len, unsigned int offset, - bool *same_page); + unsigned int max_sectors, bool *same_page); #endif /* BLK_INTERNAL_H */ |