diff options
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 2c7b9154927a..a2e496f285a4 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -337,7 +337,7 @@ struct request_queue | |||
337 | /* | 337 | /* |
338 | * Dispatch queue sorting | 338 | * Dispatch queue sorting |
339 | */ | 339 | */ |
340 | sector_t last_sector; | 340 | sector_t end_sector; |
341 | struct request *boundary_rq; | 341 | struct request *boundary_rq; |
342 | unsigned int max_back_kb; | 342 | unsigned int max_back_kb; |
343 | 343 | ||
@@ -625,6 +625,17 @@ static inline void blkdev_dequeue_request(struct request *req) | |||
625 | } | 625 | } |
626 | 626 | ||
627 | /* | 627 | /* |
628 | * This should be in elevator.h, but that requires pulling in rq and q | ||
629 | */ | ||
630 | static inline void elv_dispatch_add_tail(struct request_queue *q, | ||
631 | struct request *rq) | ||
632 | { | ||
633 | q->end_sector = rq_end_sector(rq); | ||
634 | q->boundary_rq = rq; | ||
635 | list_add_tail(&rq->queuelist, &q->queue_head); | ||
636 | } | ||
637 | |||
638 | /* | ||
628 | * Access functions for manipulating queue properties | 639 | * Access functions for manipulating queue properties |
629 | */ | 640 | */ |
630 | extern request_queue_t *blk_init_queue_node(request_fn_proc *rfn, | 641 | extern request_queue_t *blk_init_queue_node(request_fn_proc *rfn, |