diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-03 19:45:56 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-03 19:45:56 -0500 |
| commit | feaf3848a813a106f163013af6fcf6c4bfec92d9 (patch) | |
| tree | a5b2db24fa361e96efb64442f48e463154a66f8b /include/linux | |
| parent | a771132783d3f78a51597fdcee96c6dfbae3512e (diff) | |
| parent | 0e435ac26e3f951d83338ed3d4ab7dc0fe0055bc (diff) | |
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
* 'for-linus' of git://git.kernel.dk/linux-2.6-block:
block: fix setting of max_segment_size and seg_boundary mask
block: internal dequeue shouldn't start timer
block: set disk->node_id before it's being used
When block layer fails to map iov, it calls bio_unmap_user to undo
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/blkdev.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index a135256b272c..6dcd30d806cd 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
| @@ -786,6 +786,8 @@ static inline void blk_run_address_space(struct address_space *mapping) | |||
| 786 | blk_run_backing_dev(mapping->backing_dev_info, NULL); | 786 | blk_run_backing_dev(mapping->backing_dev_info, NULL); |
| 787 | } | 787 | } |
| 788 | 788 | ||
| 789 | extern void blkdev_dequeue_request(struct request *req); | ||
| 790 | |||
| 789 | /* | 791 | /* |
| 790 | * blk_end_request() and friends. | 792 | * blk_end_request() and friends. |
| 791 | * __blk_end_request() and end_request() must be called with | 793 | * __blk_end_request() and end_request() must be called with |
| @@ -820,11 +822,6 @@ extern void blk_update_request(struct request *rq, int error, | |||
| 820 | extern unsigned int blk_rq_bytes(struct request *rq); | 822 | extern unsigned int blk_rq_bytes(struct request *rq); |
| 821 | extern unsigned int blk_rq_cur_bytes(struct request *rq); | 823 | extern unsigned int blk_rq_cur_bytes(struct request *rq); |
| 822 | 824 | ||
| 823 | static inline void blkdev_dequeue_request(struct request *req) | ||
| 824 | { | ||
| 825 | elv_dequeue_request(req->q, req); | ||
| 826 | } | ||
| 827 | |||
| 828 | /* | 825 | /* |
| 829 | * Access functions for manipulating queue properties | 826 | * Access functions for manipulating queue properties |
| 830 | */ | 827 | */ |
| @@ -921,6 +918,8 @@ extern void blk_set_cmd_filter_defaults(struct blk_cmd_filter *filter); | |||
| 921 | 918 | ||
| 922 | #define MAX_SEGMENT_SIZE 65536 | 919 | #define MAX_SEGMENT_SIZE 65536 |
| 923 | 920 | ||
| 921 | #define BLK_SEG_BOUNDARY_MASK 0xFFFFFFFFUL | ||
| 922 | |||
| 924 | #define blkdev_entry_to_request(entry) list_entry((entry), struct request, queuelist) | 923 | #define blkdev_entry_to_request(entry) list_entry((entry), struct request, queuelist) |
| 925 | 924 | ||
| 926 | static inline int queue_hardsect_size(struct request_queue *q) | 925 | static inline int queue_hardsect_size(struct request_queue *q) |
