diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/blkdev.h | 14 | ||||
-rw-r--r-- | include/linux/device-mapper.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 56ce53fce72e..872b78b7a101 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -391,7 +391,7 @@ struct request_queue | |||
391 | unsigned int max_hw_sectors; | 391 | unsigned int max_hw_sectors; |
392 | unsigned short max_phys_segments; | 392 | unsigned short max_phys_segments; |
393 | unsigned short max_hw_segments; | 393 | unsigned short max_hw_segments; |
394 | unsigned short hardsect_size; | 394 | unsigned short logical_block_size; |
395 | unsigned int max_segment_size; | 395 | unsigned int max_segment_size; |
396 | 396 | ||
397 | unsigned long seg_boundary_mask; | 397 | unsigned long seg_boundary_mask; |
@@ -901,7 +901,7 @@ extern void blk_queue_max_sectors(struct request_queue *, unsigned int); | |||
901 | extern void blk_queue_max_phys_segments(struct request_queue *, unsigned short); | 901 | extern void blk_queue_max_phys_segments(struct request_queue *, unsigned short); |
902 | extern void blk_queue_max_hw_segments(struct request_queue *, unsigned short); | 902 | extern void blk_queue_max_hw_segments(struct request_queue *, unsigned short); |
903 | extern void blk_queue_max_segment_size(struct request_queue *, unsigned int); | 903 | extern void blk_queue_max_segment_size(struct request_queue *, unsigned int); |
904 | extern void blk_queue_hardsect_size(struct request_queue *, unsigned short); | 904 | extern void blk_queue_logical_block_size(struct request_queue *, unsigned short); |
905 | extern void blk_queue_stack_limits(struct request_queue *t, struct request_queue *b); | 905 | extern void blk_queue_stack_limits(struct request_queue *t, struct request_queue *b); |
906 | extern void blk_queue_dma_pad(struct request_queue *, unsigned int); | 906 | extern void blk_queue_dma_pad(struct request_queue *, unsigned int); |
907 | extern void blk_queue_update_dma_pad(struct request_queue *, unsigned int); | 907 | extern void blk_queue_update_dma_pad(struct request_queue *, unsigned int); |
@@ -988,19 +988,19 @@ extern void blk_set_cmd_filter_defaults(struct blk_cmd_filter *filter); | |||
988 | 988 | ||
989 | #define blkdev_entry_to_request(entry) list_entry((entry), struct request, queuelist) | 989 | #define blkdev_entry_to_request(entry) list_entry((entry), struct request, queuelist) |
990 | 990 | ||
991 | static inline int queue_hardsect_size(struct request_queue *q) | 991 | static inline unsigned short queue_logical_block_size(struct request_queue *q) |
992 | { | 992 | { |
993 | int retval = 512; | 993 | int retval = 512; |
994 | 994 | ||
995 | if (q && q->hardsect_size) | 995 | if (q && q->logical_block_size) |
996 | retval = q->hardsect_size; | 996 | retval = q->logical_block_size; |
997 | 997 | ||
998 | return retval; | 998 | return retval; |
999 | } | 999 | } |
1000 | 1000 | ||
1001 | static inline int bdev_hardsect_size(struct block_device *bdev) | 1001 | static inline unsigned short bdev_logical_block_size(struct block_device *bdev) |
1002 | { | 1002 | { |
1003 | return queue_hardsect_size(bdev_get_queue(bdev)); | 1003 | return queue_logical_block_size(bdev_get_queue(bdev)); |
1004 | } | 1004 | } |
1005 | 1005 | ||
1006 | static inline int queue_dma_alignment(struct request_queue *q) | 1006 | static inline int queue_dma_alignment(struct request_queue *q) |
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index ded2d7c42668..49c2362977fd 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h | |||
@@ -149,7 +149,7 @@ struct io_restrictions { | |||
149 | unsigned max_hw_sectors; | 149 | unsigned max_hw_sectors; |
150 | unsigned max_sectors; | 150 | unsigned max_sectors; |
151 | unsigned max_segment_size; | 151 | unsigned max_segment_size; |
152 | unsigned short hardsect_size; | 152 | unsigned short logical_block_size; |
153 | unsigned short max_hw_segments; | 153 | unsigned short max_hw_segments; |
154 | unsigned short max_phys_segments; | 154 | unsigned short max_phys_segments; |
155 | unsigned char no_cluster; /* inverted so that 0 is default */ | 155 | unsigned char no_cluster; /* inverted so that 0 is default */ |