/* Functions for getting the pages from a bvec.  */
static void bvec_get_page(struct dpages *dp, struct page **p, unsigned long *len, unsigned *offset)
/* Functions for getting the pages from a bvec.  */
static void bvec_get_page(struct dpages *dp, struct page **p, unsigned long *len, unsigned *offset)
{
	struct bio_vec *bvec = (struct bio_vec *) dp->context_ptr;
	*p = bvec->bv_page;
	*len = bvec->bv_len;
	*offset = bvec->bv_offset;
}