diff options
author | Tejun Heo <tj@kernel.org> | 2009-04-22 22:05:18 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-04-28 01:37:34 -0400 |
commit | 5efccd17ceb0fc43837a331297c2c407969d7201 (patch) | |
tree | 6678ebea73ffc9f2ad35029eaaf49e68073e4e88 /include | |
parent | 2eef33e439ba9ae387cdc3f1abcef2f3f6c4e7a8 (diff) |
block: reorder request completion functions
Reorder request completion functions such that
* All request completion functions are located together.
* Functions which are used by only one caller is put right above the
caller.
* end_request() is put after other completion functions but before
blk_update_request().
This change is for completion function cleanup which will follow.
[ Impact: cleanup, code reorganization ]
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/blkdev.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 12e20de44b60..156ffd9de967 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -832,6 +832,14 @@ static inline void blk_run_address_space(struct address_space *mapping) | |||
832 | extern void blkdev_dequeue_request(struct request *req); | 832 | extern void blkdev_dequeue_request(struct request *req); |
833 | 833 | ||
834 | /* | 834 | /* |
835 | * blk_end_request() takes bytes instead of sectors as a complete size. | ||
836 | * blk_rq_bytes() returns bytes left to complete in the entire request. | ||
837 | * blk_rq_cur_bytes() returns bytes left to complete in the current segment. | ||
838 | */ | ||
839 | extern unsigned int blk_rq_bytes(struct request *rq); | ||
840 | extern unsigned int blk_rq_cur_bytes(struct request *rq); | ||
841 | |||
842 | /* | ||
835 | * blk_end_request() and friends. | 843 | * blk_end_request() and friends. |
836 | * __blk_end_request() and end_request() must be called with | 844 | * __blk_end_request() and end_request() must be called with |
837 | * the request queue spinlock acquired. | 845 | * the request queue spinlock acquired. |
@@ -858,14 +866,6 @@ extern void blk_update_request(struct request *rq, int error, | |||
858 | unsigned int nr_bytes); | 866 | unsigned int nr_bytes); |
859 | 867 | ||
860 | /* | 868 | /* |
861 | * blk_end_request() takes bytes instead of sectors as a complete size. | ||
862 | * blk_rq_bytes() returns bytes left to complete in the entire request. | ||
863 | * blk_rq_cur_bytes() returns bytes left to complete in the current segment. | ||
864 | */ | ||
865 | extern unsigned int blk_rq_bytes(struct request *rq); | ||
866 | extern unsigned int blk_rq_cur_bytes(struct request *rq); | ||
867 | |||
868 | /* | ||
869 | * Access functions for manipulating queue properties | 869 | * Access functions for manipulating queue properties |
870 | */ | 870 | */ |
871 | extern struct request_queue *blk_init_queue_node(request_fn_proc *rfn, | 871 | extern struct request_queue *blk_init_queue_node(request_fn_proc *rfn, |