diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2008-10-01 22:42:53 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 02:56:22 -0400 |
commit | ad3316bf4eeb53c89164f759767f911072b56203 (patch) | |
tree | 12caa0194f385c58e4543ad864a58dff02f33a47 /include/linux | |
parent | b02739b01c5309d74a59859f2ce92c931d1f1955 (diff) |
block: Find bio sector offset given idx and offset
Helper function to find the sector offset in a bio given bvec index
and page offset.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/bio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index d86d39d490e6..fe12d0f9ebaa 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h | |||
@@ -327,6 +327,7 @@ extern int bio_add_page(struct bio *, struct page *, unsigned int,unsigned int); | |||
327 | extern int bio_add_pc_page(struct request_queue *, struct bio *, struct page *, | 327 | extern int bio_add_pc_page(struct request_queue *, struct bio *, struct page *, |
328 | unsigned int, unsigned int); | 328 | unsigned int, unsigned int); |
329 | extern int bio_get_nr_vecs(struct block_device *); | 329 | extern int bio_get_nr_vecs(struct block_device *); |
330 | extern sector_t bio_sector_offset(struct bio *, unsigned short, unsigned int); | ||
330 | extern struct bio *bio_map_user(struct request_queue *, struct block_device *, | 331 | extern struct bio *bio_map_user(struct request_queue *, struct block_device *, |
331 | unsigned long, unsigned int, int, gfp_t); | 332 | unsigned long, unsigned int, int, gfp_t); |
332 | struct sg_iovec; | 333 | struct sg_iovec; |