Skip to content

Commit

Permalink
[PATCH] Document bi_sector and sector_t
Browse files Browse the repository at this point in the history
Signed-Off-By: Roger Gammans <rgammans@computer-surgery.co.uk>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Roger Gammans authored and Jens Axboe committed Oct 4, 2006
1 parent f583f49 commit 2c2345c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/linux/bio.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ typedef void (bio_destructor_t) (struct bio *);
* stacking drivers)
*/
struct bio {
sector_t bi_sector;
sector_t bi_sector; /* device address in 512 byte
sectors */
struct bio *bi_next; /* request queue link */
struct block_device *bi_bdev;
unsigned long bi_flags; /* status, command, etc */
Expand Down
6 changes: 5 additions & 1 deletion include/linux/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,12 @@ typedef __s64 int64_t;
/* this is a special 64bit data type that is 8-byte aligned */
#define aligned_u64 unsigned long long __attribute__((aligned(8)))

/*
/**
* 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
* HAVE_SECTOR_T
*/
Expand Down

0 comments on commit 2c2345c

Please sign in to comment.