diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2009-05-22 17:17:50 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-05-22 17:22:54 -0400 |
commit | ae03bf639a5027d27270123f5f6e3ee6a412781d (patch) | |
tree | d705f41a188ad656b1f47f7952626a9f992e3b8f /block/blk-map.c | |
parent | e1defc4ff0cf57aca6c5e3ff99fa503f5943c1f1 (diff) |
block: Use accessor functions for queue limits
Convert all external users of queue limits to using wrapper functions
instead of poking the request queue variables directly.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/blk-map.c')
-rw-r--r-- | block/blk-map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-map.c b/block/blk-map.c index ef2492adca7e..9083cf0180cc 100644 --- a/block/blk-map.c +++ b/block/blk-map.c | |||
@@ -115,7 +115,7 @@ int blk_rq_map_user(struct request_queue *q, struct request *rq, | |||
115 | struct bio *bio = NULL; | 115 | struct bio *bio = NULL; |
116 | int ret; | 116 | int ret; |
117 | 117 | ||
118 | if (len > (q->max_hw_sectors << 9)) | 118 | if (len > (queue_max_hw_sectors(q) << 9)) |
119 | return -EINVAL; | 119 | return -EINVAL; |
120 | if (!len) | 120 | if (!len) |
121 | return -EINVAL; | 121 | return -EINVAL; |
@@ -292,7 +292,7 @@ int blk_rq_map_kern(struct request_queue *q, struct request *rq, void *kbuf, | |||
292 | struct bio *bio; | 292 | struct bio *bio; |
293 | int ret; | 293 | int ret; |
294 | 294 | ||
295 | if (len > (q->max_hw_sectors << 9)) | 295 | if (len > (queue_max_hw_sectors(q) << 9)) |
296 | return -EINVAL; | 296 | return -EINVAL; |
297 | if (!len || !kbuf) | 297 | if (!len || !kbuf) |
298 | return -EINVAL; | 298 | return -EINVAL; |