diff options
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 231fb77ef910..7814aa207153 100644 --- a/block/blk.h +++ b/block/blk.h @@ -249,16 +249,6 @@ static inline unsigned int bio_allowed_max_sectors(struct request_queue *q) } /* - * 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 */ void get_io_context(struct io_context *ioc); |