diff options
author | Christoph Hellwig <hch@lst.de> | 2022-07-27 18:22:59 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-08-03 05:08:53 +0200 |
commit | b6dc6198ebe855d70e6f68d279c4015fe5d73e7b (patch) | |
tree | fb7ffa213e252d25d720ff4bfa7f8ef076cefa9a /block/blk.h | |
parent | block: move the call to get_max_io_size out of blk_bio_segment_split (diff) | |
download | linux-b6dc6198ebe855d70e6f68d279c4015fe5d73e7b.tar.xz linux-b6dc6198ebe855d70e6f68d279c4015fe5d73e7b.zip |
block: move bio_allowed_max_sectors to blk-merge.c
Move this helper into the only file where it is used.
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-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r-- | block/blk.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/block/blk.h b/block/blk.h index f50c8fcded99..b3eda6c3917c 100644 --- a/block/blk.h +++ b/block/blk.h @@ -345,16 +345,6 @@ static inline void req_set_nomerge(struct request_queue *q, struct request *req) } /* - * The max size one bio can handle is UINT_MAX becasue bvec_iter.bi_size - * is defined as 'unsigned int', meantime it has to aligned to with logical - * block size which is the minimum accepted unit by hardware. - */ -static inline unsigned int bio_allowed_max_sectors(struct request_queue *q) -{ - return round_down(UINT_MAX, queue_logical_block_size(q)) >> 9; -} - -/* * Internal io_context interface */ struct io_cq *ioc_find_get_icq(struct request_queue *q); |