Commit 2c2345c2 authored by Roger Gammans's avatar Roger Gammans Committed by Jens Axboe

[PATCH] Document bi_sector and sector_t

Signed-Off-By: default avatarRoger Gammans <rgammans@computer-surgery.co.uk>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent f583f492
...@@ -70,7 +70,8 @@ typedef void (bio_destructor_t) (struct bio *); ...@@ -70,7 +70,8 @@ typedef void (bio_destructor_t) (struct bio *);
* stacking drivers) * stacking drivers)
*/ */
struct bio { struct bio {
sector_t bi_sector; sector_t bi_sector; /* device address in 512 byte
sectors */
struct bio *bi_next; /* request queue link */ struct bio *bi_next; /* request queue link */
struct block_device *bi_bdev; struct block_device *bi_bdev;
unsigned long bi_flags; /* status, command, etc */ unsigned long bi_flags; /* status, command, etc */
......
...@@ -129,8 +129,12 @@ typedef __s64 int64_t; ...@@ -129,8 +129,12 @@ typedef __s64 int64_t;
/* this is a special 64bit data type that is 8-byte aligned */ /* this is a special 64bit data type that is 8-byte aligned */
#define aligned_u64 unsigned long long __attribute__((aligned(8))) #define aligned_u64 unsigned long long __attribute__((aligned(8)))
/* /**
* The type used for indexing onto a disc or disc partition. * The type used for indexing onto a disc or disc partition.
*
* Linux always considers sectors to be 512 bytes long independently
* of the devices real block size.
*
* If required, asm/types.h can override it and define * If required, asm/types.h can override it and define
* HAVE_SECTOR_T * HAVE_SECTOR_T
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment