aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bio.h
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 08:56:22 +0200
commitad3316bf4eeb53c89164f759767f911072b56203 (patch)
tree12caa0194f385c58e4543ad864a58dff02f33a47 /include/linux/bio.h
parentblock: gendisk integrity wrapper (diff)
downloadlinux-dev-ad3316bf4eeb53c89164f759767f911072b56203.tar.xz
linux-dev-ad3316bf4eeb53c89164f759767f911072b56203.zip
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/bio.h')
-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);
extern int bio_add_pc_page(struct request_queue *, struct bio *, struct page *,
unsigned int, unsigned int);
extern int bio_get_nr_vecs(struct block_device *);
+extern sector_t bio_sector_offset(struct bio *, unsigned short, unsigned int);
extern struct bio *bio_map_user(struct request_queue *, struct block_device *,
unsigned long, unsigned int, int, gfp_t);
struct sg_iovec;