Home
last modified time | relevance | path

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

/mm/
Dpage_io.c27 static struct bio *get_swap_bio(gfp_t gfp_flags, in get_swap_bio()
30 struct bio *bio; in get_swap_bio() local
32 bio = bio_alloc(gfp_flags, 1); in get_swap_bio()
33 if (bio) { in get_swap_bio()
34 bio->bi_iter.bi_sector = map_swap_page(page, &bio->bi_bdev); in get_swap_bio()
35 bio->bi_iter.bi_sector <<= PAGE_SHIFT - 9; 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 …]