diff options
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 7bfcde2d5578..36a6eacefe20 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -331,10 +331,6 @@ struct request_pm_state | |||
331 | 331 | ||
332 | #include <linux/elevator.h> | 332 | #include <linux/elevator.h> |
333 | 333 | ||
334 | typedef int (merge_request_fn) (request_queue_t *, struct request *, | ||
335 | struct bio *); | ||
336 | typedef int (merge_requests_fn) (request_queue_t *, struct request *, | ||
337 | struct request *); | ||
338 | typedef void (request_fn_proc) (request_queue_t *q); | 334 | typedef void (request_fn_proc) (request_queue_t *q); |
339 | typedef int (make_request_fn) (request_queue_t *q, struct bio *bio); | 335 | typedef int (make_request_fn) (request_queue_t *q, struct bio *bio); |
340 | typedef int (prep_rq_fn) (request_queue_t *, struct request *); | 336 | typedef int (prep_rq_fn) (request_queue_t *, struct request *); |
@@ -342,7 +338,6 @@ typedef void (unplug_fn) (request_queue_t *); | |||
342 | 338 | ||
343 | struct bio_vec; | 339 | struct bio_vec; |
344 | typedef int (merge_bvec_fn) (request_queue_t *, struct bio *, struct bio_vec *); | 340 | typedef int (merge_bvec_fn) (request_queue_t *, struct bio *, struct bio_vec *); |
345 | typedef void (activity_fn) (void *data, int rw); | ||
346 | typedef int (issue_flush_fn) (request_queue_t *, struct gendisk *, sector_t *); | 341 | typedef int (issue_flush_fn) (request_queue_t *, struct gendisk *, sector_t *); |
347 | typedef void (prepare_flush_fn) (request_queue_t *, struct request *); | 342 | typedef void (prepare_flush_fn) (request_queue_t *, struct request *); |
348 | typedef void (softirq_done_fn)(struct request *); | 343 | typedef void (softirq_done_fn)(struct request *); |
@@ -377,14 +372,10 @@ struct request_queue | |||
377 | struct request_list rq; | 372 | struct request_list rq; |
378 | 373 | ||
379 | request_fn_proc *request_fn; | 374 | request_fn_proc *request_fn; |
380 | merge_request_fn *back_merge_fn; | ||
381 | merge_request_fn *front_merge_fn; | ||
382 | merge_requests_fn *merge_requests_fn; | ||
383 | make_request_fn *make_request_fn; | 375 | make_request_fn *make_request_fn; |
384 | prep_rq_fn *prep_rq_fn; | 376 | prep_rq_fn *prep_rq_fn; |
385 | unplug_fn *unplug_fn; | 377 | unplug_fn *unplug_fn; |
386 | merge_bvec_fn *merge_bvec_fn; | 378 | merge_bvec_fn *merge_bvec_fn; |
387 | activity_fn *activity_fn; | ||
388 | issue_flush_fn *issue_flush_fn; | 379 | issue_flush_fn *issue_flush_fn; |
389 | prepare_flush_fn *prepare_flush_fn; | 380 | prepare_flush_fn *prepare_flush_fn; |
390 | softirq_done_fn *softirq_done_fn; | 381 | softirq_done_fn *softirq_done_fn; |
@@ -411,8 +402,6 @@ struct request_queue | |||
411 | */ | 402 | */ |
412 | void *queuedata; | 403 | void *queuedata; |
413 | 404 | ||
414 | void *activity_data; | ||
415 | |||
416 | /* | 405 | /* |
417 | * queue needs bounce pages for pages above this limit | 406 | * queue needs bounce pages for pages above this limit |
418 | */ | 407 | */ |
@@ -653,6 +642,11 @@ extern int sg_scsi_ioctl(struct file *, struct request_queue *, | |||
653 | struct gendisk *, struct scsi_ioctl_command __user *); | 642 | struct gendisk *, struct scsi_ioctl_command __user *); |
654 | 643 | ||
655 | /* | 644 | /* |
645 | * Temporary export, until SCSI gets fixed up. | ||
646 | */ | ||
647 | extern int ll_back_merge_fn(request_queue_t *, struct request *, struct bio *); | ||
648 | |||
649 | /* | ||
656 | * A queue has just exitted congestion. Note this in the global counter of | 650 | * A queue has just exitted congestion. Note this in the global counter of |
657 | * congested queues, and wake up anyone who was waiting for requests to be | 651 | * congested queues, and wake up anyone who was waiting for requests to be |
658 | * put back. | 652 | * put back. |
@@ -677,11 +671,11 @@ extern void blk_sync_queue(struct request_queue *q); | |||
677 | extern void __blk_stop_queue(request_queue_t *q); | 671 | extern void __blk_stop_queue(request_queue_t *q); |
678 | extern void blk_run_queue(request_queue_t *); | 672 | extern void blk_run_queue(request_queue_t *); |
679 | extern void blk_start_queueing(request_queue_t *); | 673 | extern void blk_start_queueing(request_queue_t *); |
680 | extern void blk_queue_activity_fn(request_queue_t *, activity_fn *, void *); | 674 | extern int blk_rq_map_user(request_queue_t *, struct request *, void __user *, unsigned long); |
681 | extern int blk_rq_map_user(request_queue_t *, struct request *, void __user *, unsigned int); | 675 | extern int blk_rq_unmap_user(struct bio *); |
682 | extern int blk_rq_unmap_user(struct bio *, unsigned int); | ||
683 | extern int blk_rq_map_kern(request_queue_t *, struct request *, void *, unsigned int, gfp_t); | 676 | extern int blk_rq_map_kern(request_queue_t *, struct request *, void *, unsigned int, gfp_t); |
684 | extern int blk_rq_map_user_iov(request_queue_t *, struct request *, struct sg_iovec *, int); | 677 | extern int blk_rq_map_user_iov(request_queue_t *, struct request *, |
678 | struct sg_iovec *, int, unsigned int); | ||
685 | extern int blk_execute_rq(request_queue_t *, struct gendisk *, | 679 | extern int blk_execute_rq(request_queue_t *, struct gendisk *, |
686 | struct request *, int); | 680 | struct request *, int); |
687 | extern void blk_execute_rq_nowait(request_queue_t *, struct gendisk *, | 681 | extern void blk_execute_rq_nowait(request_queue_t *, struct gendisk *, |