summaryrefslogtreecommitdiff
path: root/linux/bio.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-05-17 03:14:09 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2018-05-17 07:24:39 -0400
commit62e4df2a38081f62fd1bd657459b7ffb2d4f522c (patch)
tree9b4ed5d3c597e19894ca77299b53057efe071c50 /linux/bio.c
parent426e88e41cdcecd007a689daf4fe432bb61303ec (diff)
drop dead code
Diffstat (limited to 'linux/bio.c')
-rw-r--r--linux/bio.c17
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);