1. NAME

bio_alloc_pages - allocates a single page for each bvec in a bio

2. SYNOPSIS

int bio_alloc_pages(struct bio *  bio , gfp_t  gfp_mask );

3. ARGUMENTS

bio
    bio to allocate pages for

gfp_mask
    flags for allocation

4. DESCRIPTION

Allocates pages up to bio->bi_vcnt.

Returns 0 on success, -ENOMEM on failure. On failure, any allocated pages are freed.

5. COPYRIGHT