aboutsummaryrefslogtreecommitdiffstats
path: root/block/cfq-iosched.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2006-07-28 03:32:57 -0400
committerJens Axboe <axboe@nelson.home.kernel.dk>2006-09-30 14:29:23 -0400
commitcb78b285c8f9d59b0d4e4f6a54c2977ce1d9b880 (patch)
treefec08d228e25103962c56f8cd43727d9d6af23c8 /block/cfq-iosched.c
parentcdd6026217c0e4cda2efce1bdc318661bef1f66f (diff)
[PATCH] Drop useless bio passing in may_queue/set_request API
It's not needed for anything, so kill the bio passing. Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r--block/cfq-iosched.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index 3c5fd9c2c205..2ac35aacbbf9 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -1752,7 +1752,7 @@ __cfq_may_queue(struct cfq_data *cfqd, struct cfq_queue *cfqq,
1752 return ELV_MQUEUE_MAY; 1752 return ELV_MQUEUE_MAY;
1753} 1753}
1754 1754
1755static int cfq_may_queue(request_queue_t *q, int rw, struct bio *bio) 1755static int cfq_may_queue(request_queue_t *q, int rw)
1756{ 1756{
1757 struct cfq_data *cfqd = q->elevator->elevator_data; 1757 struct cfq_data *cfqd = q->elevator->elevator_data;
1758 struct task_struct *tsk = current; 1758 struct task_struct *tsk = current;
@@ -1817,8 +1817,7 @@ static void cfq_put_request(request_queue_t *q, struct request *rq)
1817 * Allocate cfq data structures associated with this request. 1817 * Allocate cfq data structures associated with this request.
1818 */ 1818 */
1819static int 1819static int
1820cfq_set_request(request_queue_t *q, struct request *rq, struct bio *bio, 1820cfq_set_request(request_queue_t *q, struct request *rq, gfp_t gfp_mask)
1821 gfp_t gfp_mask)
1822{ 1821{
1823 struct cfq_data *cfqd = q->elevator->elevator_data; 1822 struct cfq_data *cfqd = q->elevator->elevator_data;
1824 struct task_struct *tsk = current; 1823 struct task_struct *tsk = current;