diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 31e11051f1ba3b8c0b04170f7e235a01b9b420c9..713f8b62b435ea2cd2d273fc02c2b39520886d7d 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -920,7 +920,7 @@ static inline unsigned int blk_max_size_offset(struct request_queue *q, sector_t offset) { if (!q->limits.chunk_sectors) - return q->limits.max_hw_sectors; + return q->limits.max_sectors; return q->limits.chunk_sectors - (offset & (q->limits.chunk_sectors - 1));