summaryrefslogtreecommitdiffstats
path: root/block/elevator.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2006-12-01 10:42:33 +0100
committerJens Axboe <jens.axboe@oracle.com>2006-12-01 10:42:33 +0100
commitbb37b94c68e7b37eecea8576039ae9396ca07839 (patch)
tree0b5dcbb3abb7710789d401126431f6f4dfe89e3a /block/elevator.c
parent0e75f9063f5c55fb0b0b546a7c356f8ec186825e (diff)
downloadkernel-crypto-bb37b94c68e7b37eecea8576039ae9396ca07839.tar.gz
kernel-crypto-bb37b94c68e7b37eecea8576039ae9396ca07839.tar.xz
kernel-crypto-bb37b94c68e7b37eecea8576039ae9396ca07839.zip
[BLOCK] Cleanup unused variable passing
- ->init_queue() does not need the elevator passed in - ->put_request() is a hot path and need not have the queue passed in - cfq_update_io_seektime() does not need cfqd passed in Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/elevator.c')
-rw-r--r--block/elevator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/elevator.c b/block/elevator.c
index 8ccd163254b..c0063f345c5 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -129,7 +129,7 @@ static struct elevator_type *elevator_get(const char *name)
static void *elevator_init_queue(request_queue_t *q, struct elevator_queue *eq)
{
- return eq->ops->elevator_init_fn(q, eq);
+ return eq->ops->elevator_init_fn(q);
}
static void elevator_attach(request_queue_t *q, struct elevator_queue *eq,
@@ -810,7 +810,7 @@ void elv_put_request(request_queue_t *q, struct request *rq)
elevator_t *e = q->elevator;
if (e->ops->elevator_put_req_fn)
- e->ops->elevator_put_req_fn(q, rq);
+ e->ops->elevator_put_req_fn(rq);
}
int elv_may_queue(request_queue_t *q, int rw)