From: Stuart McLaren Date: Tue, 6 Sep 2005 22:17:47 +0000 (-0700) Subject: [PATCH] blk: Use blk_queue_xxx functions to set parameters X-Git-Tag: v2.6.14-rc1~664 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=309c0a1d5d1dae2e543bfc5a0e762d0424696e0d;p=linux-2.6-omap-h63xx.git [PATCH] blk: Use blk_queue_xxx functions to set parameters Per-queue parameters should be updated using the appropriate blk_queue_xxx functions. Signed-off-by: Stuart McLaren Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/block/ll_rw_blk.c b/drivers/block/ll_rw_blk.c index 3c818544475..b4b17958d10 100644 --- a/drivers/block/ll_rw_blk.c +++ b/drivers/block/ll_rw_blk.c @@ -235,8 +235,8 @@ void blk_queue_make_request(request_queue_t * q, make_request_fn * mfn) * set defaults */ q->nr_requests = BLKDEV_MAX_RQ; - q->max_phys_segments = MAX_PHYS_SEGMENTS; - q->max_hw_segments = MAX_HW_SEGMENTS; + blk_queue_max_phys_segments(q, MAX_PHYS_SEGMENTS); + blk_queue_max_hw_segments(q, MAX_HW_SEGMENTS); q->make_request_fn = mfn; q->backing_dev_info.ra_pages = (VM_MAX_READAHEAD * 1024) / PAGE_CACHE_SIZE; q->backing_dev_info.state = 0;