diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2010-02-26 00:20:38 -0500 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-02-26 07:58:08 -0500 |
commit | 086fa5ff0854c676ec333760f4c0154b3b242616 (patch) | |
tree | ee63fb3c7c7d964bd799355b7cde18ba95f91f07 /include/linux | |
parent | eb28d31bc97e6374d81f404da309401ffaed467b (diff) |
block: Rename blk_queue_max_sectors to blk_queue_max_hw_sectors
The block layer calling convention is blk_queue_<limit name>.
blk_queue_max_sectors predates this practice, leading to some confusion.
Rename the function to appropriately reflect that its intended use is to
set max_hw_sectors.
Also introduce a temporary wrapper for backwards compability. This can
be removed after the merge window is closed.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/blkdev.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 5d378627f446..57bc48446e92 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -921,7 +921,14 @@ extern struct request_queue *blk_init_queue(request_fn_proc *, spinlock_t *); | |||
921 | extern void blk_cleanup_queue(struct request_queue *); | 921 | extern void blk_cleanup_queue(struct request_queue *); |
922 | extern void blk_queue_make_request(struct request_queue *, make_request_fn *); | 922 | extern void blk_queue_make_request(struct request_queue *, make_request_fn *); |
923 | extern void blk_queue_bounce_limit(struct request_queue *, u64); | 923 | extern void blk_queue_bounce_limit(struct request_queue *, u64); |
924 | extern void blk_queue_max_sectors(struct request_queue *, unsigned int); | 924 | extern void blk_queue_max_hw_sectors(struct request_queue *, unsigned int); |
925 | |||
926 | /* Temporary compatibility wrapper */ | ||
927 | static inline void blk_queue_max_sectors(struct request_queue *q, unsigned int max) | ||
928 | { | ||
929 | blk_queue_max_hw_sectors(q, max); | ||
930 | } | ||
931 | |||
925 | extern void blk_queue_max_phys_segments(struct request_queue *, unsigned short); | 932 | extern void blk_queue_max_phys_segments(struct request_queue *, unsigned short); |
926 | extern void blk_queue_max_hw_segments(struct request_queue *, unsigned short); | 933 | extern void blk_queue_max_hw_segments(struct request_queue *, unsigned short); |
927 | extern void blk_queue_max_segment_size(struct request_queue *, unsigned int); | 934 | extern void blk_queue_max_segment_size(struct request_queue *, unsigned int); |