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 | |
| 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>
85 files changed, 529 insertions, 510 deletions
diff --git a/Documentation/block/barrier.txt b/Documentation/block/barrier.txt index 7d279f2f5bb2..2c2f24f634e4 100644 --- a/Documentation/block/barrier.txt +++ b/Documentation/block/barrier.txt | |||
| @@ -79,9 +79,9 @@ and how to prepare flush requests. Note that the term 'ordered' is | |||
| 79 | used to indicate the whole sequence of performing barrier requests | 79 | used to indicate the whole sequence of performing barrier requests |
| 80 | including draining and flushing. | 80 | including draining and flushing. |
| 81 | 81 | ||
| 82 | typedef void (prepare_flush_fn)(request_queue_t *q, struct request *rq); | 82 | typedef void (prepare_flush_fn)(struct request_queue *q, struct request *rq); |
| 83 | 83 | ||
| 84 | int blk_queue_ordered(request_queue_t *q, unsigned ordered, | 84 | int blk_queue_ordered(struct request_queue *q, unsigned ordered, |
| 85 | prepare_flush_fn *prepare_flush_fn); | 85 | prepare_flush_fn *prepare_flush_fn); |
| 86 | 86 | ||
| 87 | @q : the queue in question | 87 | @q : the queue in question |
| @@ -92,7 +92,7 @@ int blk_queue_ordered(request_queue_t *q, unsigned ordered, | |||
| 92 | For example, SCSI disk driver's prepare_flush_fn looks like the | 92 | For example, SCSI disk driver's prepare_flush_fn looks like the |
| 93 | following. | 93 | following. |
| 94 | 94 | ||
| 95 | static void sd_prepare_flush(request_queue_t *q, struct request *rq) | 95 | static void sd_prepare_flush(struct request_queue *q, struct request *rq) |
| 96 | { | 96 | { |
| 97 | memset(rq->cmd, 0, sizeof(rq->cmd)); | 97 | memset(rq->cmd, 0, sizeof(rq->cmd)); |
| 98 | rq->cmd_type = REQ_TYPE_BLOCK_PC; | 98 | rq->cmd_type = REQ_TYPE_BLOCK_PC; |
diff --git a/Documentation/block/biodoc.txt b/Documentation/block/biodoc.txt index 3adaace328a6..8af392fc6ef0 100644 --- a/Documentation/block/biodoc.txt +++ b/Documentation/block/biodoc.txt | |||
| @@ -740,12 +740,12 @@ Block now offers some simple generic functionality to help support command | |||
| 740 | queueing (typically known as tagged command queueing), ie manage more than | 740 | queueing (typically known as tagged command queueing), ie manage more than |
| 741 | one outstanding command on a queue at any given time. | 741 | one outstanding command on a queue at any given time. |
| 742 | 742 | ||
| 743 | blk_queue_init_tags(request_queue_t *q, int depth) | 743 | blk_queue_init_tags(struct request_queue *q, int depth) |
| 744 | 744 | ||
| 745 | Initialize internal command tagging structures for a maximum | 745 | Initialize internal command tagging structures for a maximum |
| 746 | depth of 'depth'. | 746 | depth of 'depth'. |
| 747 | 747 | ||
| 748 | blk_queue_free_tags((request_queue_t *q) | 748 | blk_queue_free_tags((struct request_queue *q) |
| 749 | 749 | ||
| 750 | Teardown tag info associated with the queue. This will be done | 750 | Teardown tag info associated with the queue. This will be done |
| 751 | automatically by block if blk_queue_cleanup() is called on a queue | 751 | automatically by block if blk_queue_cleanup() is called on a queue |
| @@ -754,7 +754,7 @@ one outstanding command on a queue at any given time. | |||
| 754 | The above are initialization and exit management, the main helpers during | 754 | The above are initialization and exit management, the main helpers during |
| 755 | normal operations are: | 755 | normal operations are: |
| 756 | 756 | ||
| 757 | blk_queue_start_tag(request_queue_t *q, struct request *rq) | 757 | blk_queue_start_tag(struct request_queue *q, struct request *rq) |
| 758 | 758 | ||
| 759 | Start tagged operation for this request. A free tag number between | 759 | Start tagged operation for this request. A free tag number between |
| 760 | 0 and 'depth' is assigned to the request (rq->tag holds this number), | ||
