/* Functions for getting the pages from a list.  */
static void list_get_page(struct dpages *dp, struct page **p, unsigned long *len, unsigned *offset)
/* Functions for getting the pages from a list.  */
static void list_get_page(struct dpages *dp, struct page **p, unsigned long *len, unsigned *offset)
{
	unsigned o = dp->context_u;
	struct page_list *pl = (struct page_list *) dp->context_ptr;
	*p = pl->page;
	*len = PAGE_SIZE - o;
	*offset = o;
}