[PATCH] Document bi_sector and sector_t

Signed-Off-By: Roger Gammans <rgammans@computer-surgery.co.uk>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

authored by Roger Gammans and committed by Jens Axboe 2c2345c2 f583f492

+7 -2
+2 -1
include/linux/bio.h
··· 70 * stacking drivers) 71 */ 72 struct bio { 73 - sector_t bi_sector; 74 struct bio *bi_next; /* request queue link */ 75 struct block_device *bi_bdev; 76 unsigned long bi_flags; /* status, command, etc */
··· 70 * stacking drivers) 71 */ 72 struct bio { 73 + sector_t bi_sector; /* device address in 512 byte 74 + sectors */ 75 struct bio *bi_next; /* request queue link */ 76 struct block_device *bi_bdev; 77 unsigned long bi_flags; /* status, command, etc */
+5 -1
include/linux/types.h
··· 129 /* this is a special 64bit data type that is 8-byte aligned */ 130 #define aligned_u64 unsigned long long __attribute__((aligned(8))) 131 132 - /* 133 * The type used for indexing onto a disc or disc partition. 134 * If required, asm/types.h can override it and define 135 * HAVE_SECTOR_T 136 */
··· 129 /* this is a special 64bit data type that is 8-byte aligned */ 130 #define aligned_u64 unsigned long long __attribute__((aligned(8))) 131 132 + /** 133 * The type used for indexing onto a disc or disc partition. 134 + * 135 + * Linux always considers sectors to be 512 bytes long independently 136 + * of the devices real block size. 137 + * 138 * If required, asm/types.h can override it and define 139 * HAVE_SECTOR_T 140 */