Home
last modified time | relevance | path

Searched refs:bio (Results 1 – 2 of 2) sorted by relevance

/mm/
Dpage_io.c22 static struct bio *get_swap_bio(gfp_t gfp_flags, pgoff_t index, in get_swap_bio()
25 struct bio *bio; in get_swap_bio() local
27 bio = bio_alloc(gfp_flags, 1); in get_swap_bio()
28 if (bio) { in get_swap_bio()
33 bio->bi_sector = map_swap_page(sis, swp_offset(entry)) * in get_swap_bio()
35 bio->bi_bdev = sis->bdev; in get_swap_bio()
36 bio->bi_io_vec[0].bv_page = page; in get_swap_bio()
37 bio->bi_io_vec[0].bv_len = PAGE_SIZE; in get_swap_bio()
38 bio->bi_io_vec[0].bv_offset = 0; in get_swap_bio()
39 bio->bi_vcnt = 1; in get_swap_bio()
[all …]
Dbounce.c98 static void copy_to_high_bio_irq(struct bio *to, struct bio *from) in copy_to_high_bio_irq()
125 static void bounce_end_io(struct bio *bio, mempool_t *pool, int err) in bounce_end_io() argument
127 struct bio *bio_orig = bio->bi_private; in bounce_end_io()
131 if (test_bit(BIO_EOPNOTSUPP, &bio->bi_flags)) in bounce_end_io()
137 __bio_for_each_segment(bvec, bio, i, 0) { in bounce_end_io()
147 bio_put(bio); in bounce_end_io()
150 static void bounce_end_io_write(struct bio *bio, int err) in bounce_end_io_write() argument
152 bounce_end_io(bio, page_pool, err); in bounce_end_io_write()
155 static void bounce_end_io_write_isa(struct bio *bio, int err) in bounce_end_io_write_isa() argument
158 bounce_end_io(bio, isa_page_pool, err); in bounce_end_io_write_isa()
[all …]