diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2007-07-24 03:28:11 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-07-24 03:28:11 -0400 |
commit | 165125e1e480f9510a5ffcfbfee4e3ee38c05f23 (patch) | |
tree | 8009c8a5ff09e26dc2418d42f66ecafb055c52a2 /block/deadline-iosched.c | |
parent | f695baf2df9e0413d3521661070103711545207a (diff) |
[BLOCK] Get rid of request_queue_t typedef
Some of the code has been gradually transitioned to using the proper
struct request_queue, but there's lots left. So do a full sweet of
the kernel and get rid of this typedef and replace its uses with
the proper type.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/deadline-iosched.c')
-rw-r--r-- | block/deadline-iosched.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/block/deadline-iosched.c b/block/deadline-iosched.c index 87ca02ac84cb..1a511ffaf8a4 100644 --- a/block/deadline-iosched.c +++ b/block/deadline-iosched.c | |||
@@ -106,7 +106,7 @@ deadline_add_request(struct request_queue *q, struct request *rq) | |||
106 | /* | 106 | /* |
107 | * remove rq from rbtree and fifo. | 107 | * remove rq from rbtree and fifo. |
108 | */ | 108 | */ |
109 | static void deadline_remove_request(request_queue_t *q, struct request *rq) | 109 | static void deadline_remove_request(struct request_queue *q, struct request *rq) |
110 | { | 110 | { |
111 | struct deadline_data *dd = q->elevator->elevator_data; | 111 | struct deadline_data *dd = q->elevator->elevator_data; |
112 | 112 | ||
@@ -115,7 +115,7 @@ static void deadline_remove_request(request_queue_t *q, struct request *rq) | |||
115 | } | 115 | } |
116 | 116 | ||
117 | static int | 117 | static int |
118 | deadline_merge(request_queue_t *q, struct request **req, struct bio *bio) | 118 | deadline_merge(struct request_queue *q, struct request **req, struct bio *bio) |
119 | { | 119 | { |
120 | struct deadline_data *dd = q->elevator->elevator_data; | 120 | struct deadline_data *dd = q->elevator->elevator_data; |
121 | struct request *__rq; | 121 | struct request *__rq; |
@@ -144,8 +144,8 @@ out: | |||
144 | return ret; | 144 | return ret; |
145 | } | 145 | } |
146 | 146 | ||
147 | static void deadline_merged_request(request_queue_t *q, struct request *req, | 147 | static void deadline_merged_request(struct request_queue *q, |
148 | int type) | 148 | struct request *req, int type) |
149 | { | 149 | { |
150 | struct deadline_data *dd = q->elevator->elevator_data; | 150 | struct deadline_data *dd = q->elevator->elevator_data; |
151 | 151 | ||
@@ -159,7 +159,7 @@ static void deadline_merged_request(request_queue_t *q, struct request *req, | |||
159 | } | 159 | } |
160 | 160 | ||
161 | static void | 161 | static void |
162 | deadline_merged_requests(request_queue_t *q, struct request *req, | 162 | deadline_merged_requests(struct request_queue *q, struct request *req, |
163 | struct request *next) | 163 | struct request *next) |
164 | { | 164 | { |
165 | /* | 165 | /* |
@@ -185,7 +185,7 @@ deadline_merged_requests(request_queue_t *q, struct request *req, | |||
185 | static inline void | 185 | static inline void |
186 | deadline_move_to_dispatch(struct deadline_data *dd, struct request *rq) | 186 | deadline_move_to_dispatch(struct deadline_data *dd, struct request *rq) |
187 | { | 187 | { |
188 | request_queue_t *q = rq->q; | 188 | struct request_queue *q = rq->q; |
189 | 189 | ||
190 | deadline_remove_request(q, rq); | 190 | deadline_remove_request(q, rq); |
191 | elv_dispatch_add_tail(q, rq); | 191 | elv_dispatch_add_tail(q, rq); |
@@ -236,7 +236,7 @@ static inline int deadline_check_fifo(struct deadline_data *dd, int ddir) | |||
236 | * deadline_dispatch_requests selects the best request according to | 236 | * deadline_dispatch_requests selects the best request according to |
237 | * read/write expire, fifo_batch, etc | 237 | * read/write expire, fifo_batch, etc |
238 | */ | 238 | */ |
239 | static int deadline_dispatch_requests(request_queue_t *q, int force) | 239 | static int deadline_dispatch_requests(struct request_queue *q, int force) |
240 | { | 240 | { |
241 | struct deadline_data *dd = q->elevator->elevator_data; | 241 | struct deadline_data *dd = q->elevator->elevator_data; |
242 | const int reads = !list_empty(&dd->fifo_list[READ]); | 242 | const int reads = !list_empty(&dd->fifo_list[READ]); |
@@ -335,7 +335,7 @@ dispatch_request: | |||
335 | return 1; | 335 | return 1; |
336 | } | 336 | } |
337 | 337 | ||
338 | static int deadline_queue_empty(request_queue_t *q) | 338 | static int deadline_queue_empty(struct request_queue *q) |
339 | { | 339 | { |
340 | struct deadline_data *dd = q->elevator->elevator_data; | 340 | struct deadline_data *dd = q->elevator->elevator_data; |
341 | 341 | ||
@@ -356,7 +356,7 @@ static void deadline_exit_queue(elevator_t *e) | |||
356 | /* | 356 | /* |
357 | * initialize elevator private data (deadline_data). | 357 | * initialize elevator private data (deadline_data). |
358 | */ | 358 | */ |
359 | static void *deadline_init_queue(request_queue_t *q) | 359 | static void *deadline_init_queue(struct request_queue *q) |
360 | { | 360 | { |
361 | struct deadline_data *dd; | 361 | struct deadline_data *dd; |
362 | 362 | ||