aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2008-10-01 22:42:53 -0400
committerJens Axboe <jens.axboe@oracle.com>2008-10-09 02:56:22 -0400
commitad3316bf4eeb53c89164f759767f911072b56203 (patch)
tree12caa0194f385c58e4543ad864a58dff02f33a47 /include/linux
parentb02739b01c5309d74a59859f2ce92c931d1f1955 (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.h1
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);
327extern int bio_add_pc_page(struct request_queue *, struct bio *, struct page *, 327extern int bio_add_pc_page(struct request_queue *, struct bio *, struct page *,
328 unsigned int, unsigned int); 328 unsigned int, unsigned int);
329extern int bio_get_nr_vecs(struct block_device *); 329extern int bio_get_nr_vecs(struct block_device *);
330extern sector_t bio_sector_offset(struct bio *, unsigned short, unsigned int);
330extern struct bio *bio_map_user(struct request_queue *, struct block_device *, 331extern 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);
332struct sg_iovec; 333struct sg_iovec;