@@ -2167,7 +2167,7 @@ static void bfq_remove_request(struct request_queue *q,
bfqd->queued--;
elv_rb_del(&bfqq->sort_list, rq);
- elv_rqhash_del(q, rq);
+ elv_rqhash_del(rq);
if (q->last_merge == rq)
q->last_merge = NULL;
@@ -204,7 +204,7 @@ static inline void __elv_rqhash_del(struct request *rq)
rq->rq_flags &= ~RQF_HASHED;
}
-void elv_rqhash_del(struct request_queue *q, struct request *rq)
+void elv_rqhash_del(struct request *rq)
{
if (ELV_ON_HASH(rq))
__elv_rqhash_del(rq);
@@ -418,7 +418,7 @@ struct request *elv_latter_request(struct request_queue *q, struct request *rq)
struct elevator_queue *e = q->elevator;
if (e->type->ops.next_request)
- return e->type->ops.next_request(q, rq);
+ return e->type->ops.next_request(rq);
return NULL;
}
@@ -428,7 +428,7 @@ struct request *elv_former_request(struct request_queue *q, struct request *rq)
struct elevator_queue *e = q->elevator;
if (e->type->ops.former_request)
- return e->type->ops.former_request(q, rq);
+ return e->type->ops.former_request(rq);
return NULL;
}
@@ -809,8 +809,7 @@ ssize_t elv_iosched_show(struct request_queue *q, char *name)
return len;
}
-struct request *elv_rb_former_request(struct request_queue *q,
- struct request *rq)
+struct request *elv_rb_former_request(struct request *rq)
{
struct rb_node *rbprev = rb_prev(&rq->rb_node);
@@ -821,8 +820,7 @@ struct request *elv_rb_former_request(struct request_queue *q,
}
EXPORT_SYMBOL(elv_rb_former_request);
-struct request *elv_rb_latter_request(struct request_queue *q,
- struct request *rq)
+struct request *elv_rb_latter_request(struct request *rq)
{
struct rb_node *rbnext = rb_next(&rq->rb_node);
@@ -118,7 +118,7 @@ static void deadline_remove_request(struct request_queue *q, struct request *rq)
if (!RB_EMPTY_NODE(&rq->rb_node))
deadline_del_rq_rb(dd, rq);
- elv_rqhash_del(q, rq);
+ elv_rqhash_del(rq);
if (q->last_merge == rq)
q->last_merge = NULL;
}
@@ -46,8 +46,8 @@ struct elevator_mq_ops {
bool (*has_work)(struct blk_mq_hw_ctx *);
void (*completed_request)(struct request *, u64);
void (*requeue_request)(struct request *);
- struct request *(*former_request)(struct request_queue *, struct request *);
- struct request *(*next_request)(struct request_queue *, struct request *);
+ struct request *(*former_request)(struct request *);
+ struct request *(*next_request)(struct request *);
void (*init_icq)(struct io_cq *);
void (*exit_icq)(struct io_cq *);
};
@@ -90,7 +90,7 @@ struct elevator_type
#define ELV_HASH_BITS 6
-void elv_rqhash_del(struct request_queue *q, struct request *rq);
+void elv_rqhash_del(struct request *rq);
void elv_rqhash_add(struct request_queue *q, struct request *rq);
void elv_rqhash_reposition(struct request_queue *q, struct request *rq);
struct request *elv_rqhash_find(struct request_queue *q, sector_t offset);
@@ -140,8 +140,8 @@ extern struct elevator_queue *elevator_alloc(struct request_queue *,
/*
* Helper functions.
*/
-extern struct request *elv_rb_former_request(struct request_queue *, struct request *);
-extern struct request *elv_rb_latter_request(struct request_queue *, struct request *);
+extern struct request *elv_rb_former_request(struct request *);
+extern struct request *elv_rb_latter_request(struct request *);
/*
* rb support functions.