diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2006-12-01 10:42:33 +0100 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2006-12-01 10:42:33 +0100 |
commit | bb37b94c68e7b37eecea8576039ae9396ca07839 (patch) | |
tree | 0b5dcbb3abb7710789d401126431f6f4dfe89e3a /include/linux/elevator.h | |
parent | 0e75f9063f5c55fb0b0b546a7c356f8ec186825e (diff) | |
download | linux-stable-bb37b94c68e7b37eecea8576039ae9396ca07839.tar.gz linux-stable-bb37b94c68e7b37eecea8576039ae9396ca07839.tar.bz2 linux-stable-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 'include/linux/elevator.h')
-rw-r--r-- | include/linux/elevator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/elevator.h b/include/linux/elevator.h index 2fa9f1144228..a24931d24404 100644 --- a/include/linux/elevator.h +++ b/include/linux/elevator.h @@ -21,11 +21,11 @@ typedef void (elevator_completed_req_fn) (request_queue_t *, struct request *); typedef int (elevator_may_queue_fn) (request_queue_t *, int); typedef int (elevator_set_req_fn) (request_queue_t *, struct request *, gfp_t); -typedef void (elevator_put_req_fn) (request_queue_t *, struct request *); +typedef void (elevator_put_req_fn) (struct request *); typedef void (elevator_activate_req_fn) (request_queue_t *, struct request *); typedef void (elevator_deactivate_req_fn) (request_queue_t *, struct request *); -typedef void *(elevator_init_fn) (request_queue_t *, elevator_t *); +typedef void *(elevator_init_fn) (request_queue_t *); typedef void (elevator_exit_fn) (elevator_t *); struct elevator_ops |