diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2010-02-26 00:20:36 -0500 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-02-26 07:58:07 -0500 |
commit | e751e76a5f7adeee7438e68b0965559ad2864d0d (patch) | |
tree | 06b1863a484203d7a217fa33964ef2d80a2ad712 | |
parent | 2800aac1114548a9b47b6e0d398117cc01b89685 (diff) |
block: Remove unused accessor function
blk_queue_max_hw_sectors is no longer called by any subsystem and can be
removed.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r-- | block/blk-settings.c | 9 | ||||
-rw-r--r-- | include/linux/blkdev.h | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c index 605df9b3de8..4db46f2fcbe 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c | |||
@@ -239,15 +239,6 @@ void blk_queue_max_sectors(struct request_queue *q, unsigned int max_hw_sectors) | |||
239 | } | 239 | } |
240 | EXPORT_SYMBOL(blk_queue_max_sectors); | 240 | EXPORT_SYMBOL(blk_queue_max_sectors); |
241 | 241 | ||
242 | void blk_queue_max_hw_sectors(struct request_queue *q, unsigned int max_sectors) | ||
243 | { | ||
244 | if (BLK_DEF_MAX_SECTORS > max_sectors) | ||
245 | q->limits.max_hw_sectors = BLK_DEF_MAX_SECTORS; | ||
246 | else | ||
247 | q->limits.max_hw_sectors = max_sectors; | ||
248 | } | ||
249 | EXPORT_SYMBOL(blk_queue_max_hw_sectors); | ||
250 | |||
251 | /** | 242 | /** |
252 | * blk_queue_max_discard_sectors - set max sectors for a single discard | 243 | * blk_queue_max_discard_sectors - set max sectors for a single discard |
253 | * @q: the request queue for the device | 244 | * @q: the request queue for the device |
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 2f17793048e..c051cea2df0 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -922,7 +922,6 @@ 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_sectors(struct request_queue *, unsigned int); |
925 | extern void blk_queue_max_hw_sectors(struct request_queue *, unsigned int); | ||
926 | extern void blk_queue_max_phys_segments(struct request_queue *, unsigned short); | 925 | extern void blk_queue_max_phys_segments(struct request_queue *, unsigned short); |
927 | extern void blk_queue_max_hw_segments(struct request_queue *, unsigned short); | 926 | extern void blk_queue_max_hw_segments(struct request_queue *, unsigned short); |
928 | extern void blk_queue_max_segment_size(struct request_queue *, unsigned int); | 927 | extern void blk_queue_max_segment_size(struct request_queue *, unsigned int); |