diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/blkdev.h | 17 | ||||
-rw-r--r-- | include/linux/elevator.h | 2 |
2 files changed, 4 insertions, 15 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index b2a412cf468f..8f5486964671 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -229,6 +229,8 @@ struct request { | |||
229 | struct bio *bio; | 229 | struct bio *bio; |
230 | struct bio *biotail; | 230 | struct bio *biotail; |
231 | 231 | ||
232 | struct hlist_node hash; /* merge hash */ | ||
233 | |||
232 | void *elevator_private; | 234 | void *elevator_private; |
233 | void *completion_data; | 235 | void *completion_data; |
234 | 236 | ||
@@ -697,21 +699,6 @@ static inline void blkdev_dequeue_request(struct request *req) | |||
697 | } | 699 | } |
698 | 700 | ||
699 | /* | 701 | /* |
700 | * This should be in elevator.h, but that requires pulling in rq and q | ||
701 | */ | ||
702 | static inline void elv_dispatch_add_tail(struct request_queue *q, | ||
703 | struct request *rq) | ||
704 | { | ||
705 | if (q->last_merge == rq) | ||
706 | q->last_merge = NULL; | ||
707 | q->nr_sorted--; | ||
708 | |||
709 | q->end_sector = rq_end_sector(rq); | ||
710 | q->boundary_rq = rq; | ||
711 | list_add_tail(&rq->queuelist, &q->queue_head); | ||
712 | } | ||
713 | |||
714 | /* | ||
715 | * Access functions for manipulating queue properties | 702 | * Access functions for manipulating queue properties |
716 | */ | 703 | */ |
717 | extern request_queue_t *blk_init_queue_node(request_fn_proc *rfn, | 704 | extern request_queue_t *blk_init_queue_node(request_fn_proc *rfn, |
diff --git a/include/linux/elevator.h b/include/linux/elevator.h index 1713ace808bf..2c270e90b33e 100644 --- a/include/linux/elevator.h +++ b/include/linux/elevator.h | |||
@@ -82,12 +82,14 @@ struct elevator_queue | |||
82 | struct kobject kobj; | 82 | struct kobject kobj; |
83 | struct elevator_type *elevator_type; | 83 | struct elevator_type *elevator_type; |
84 | struct mutex sysfs_lock; | 84 | struct mutex sysfs_lock; |
85 | struct hlist_head *hash; | ||
85 | }; | 86 | }; |
86 | 87 | ||
87 | /* | 88 | /* |
88 | * block elevator interface | 89 | * block elevator interface |
89 | */ | 90 | */ |
90 | extern void elv_dispatch_sort(request_queue_t *, struct request *); | 91 | extern void elv_dispatch_sort(request_queue_t *, struct request *); |
92 | extern void elv_dispatch_add_tail(request_queue_t *, struct request *); | ||
91 | extern void elv_add_request(request_queue_t *, struct request *, int, int); | 93 | extern void elv_add_request(request_queue_t *, struct request *, int, int); |
92 | extern void __elv_add_request(request_queue_t *, struct request *, int, int); | 94 | extern void __elv_add_request(request_queue_t *, struct request *, int, int); |
93 | extern void elv_insert(request_queue_t *, struct request *, int); | 95 | extern void elv_insert(request_queue_t *, struct request *, int); |