diff options
Diffstat (limited to 'linux/bio.c')
-rw-r--r-- | linux/bio.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/linux/bio.c b/linux/bio.c index 79f50dc2..c4cdceaa 100644 --- a/linux/bio.c +++ b/linux/bio.c @@ -172,23 +172,6 @@ void bio_free_pages(struct bio *bio) __free_page(bvec->bv_page); } -int bio_alloc_pages(struct bio *bio, gfp_t gfp_mask) -{ - int i; - struct bio_vec *bv; - - bio_for_each_segment_all(bv, bio, i) { - bv->bv_page = alloc_page(gfp_mask); - if (!bv->bv_page) { - while (--bv >= bio->bi_io_vec) - __free_page(bv->bv_page); - return -ENOMEM; - } - } - - return 0; -} - void bio_advance(struct bio *bio, unsigned bytes) { bio_advance_iter(bio, &bio->bi_iter, bytes); |