Lines Matching refs:bio
1128 struct bio *bio, in xfs_buf_bio_end_io() argument
1131 xfs_buf_t *bp = (xfs_buf_t *)bio->bi_private; in xfs_buf_bio_end_io()
1133 struct bio_vec *bvec = bio->bi_io_vec + bio->bi_vcnt - 1; in xfs_buf_bio_end_io()
1151 if (--bvec >= bio->bi_io_vec) in xfs_buf_bio_end_io()
1156 } while (bvec >= bio->bi_io_vec); in xfs_buf_bio_end_io()
1159 bio_put(bio); in xfs_buf_bio_end_io()
1167 struct bio *bio; in _xfs_buf_ioapply() local
1197 bio = bio_alloc(GFP_NOIO, 1); in _xfs_buf_ioapply()
1199 bio->bi_bdev = bp->b_target->bt_bdev; in _xfs_buf_ioapply()
1200 bio->bi_sector = sector - (offset >> BBSHIFT); in _xfs_buf_ioapply()
1201 bio->bi_end_io = xfs_buf_bio_end_io; in _xfs_buf_ioapply()
1202 bio->bi_private = bp; in _xfs_buf_ioapply()
1204 bio_add_page(bio, bp->b_pages[0], PAGE_CACHE_SIZE, 0); in _xfs_buf_ioapply()
1218 bio = bio_alloc(GFP_NOIO, nr_pages); in _xfs_buf_ioapply()
1219 bio->bi_bdev = bp->b_target->bt_bdev; in _xfs_buf_ioapply()
1220 bio->bi_sector = sector; in _xfs_buf_ioapply()
1221 bio->bi_end_io = xfs_buf_bio_end_io; in _xfs_buf_ioapply()
1222 bio->bi_private = bp; in _xfs_buf_ioapply()
1230 rbytes = bio_add_page(bio, bp->b_pages[map_i], nbytes, offset); in _xfs_buf_ioapply()
1241 if (likely(bio->bi_size)) { in _xfs_buf_ioapply()
1242 submit_bio(rw, bio); in _xfs_buf_ioapply()
1246 bio_put(bio); in _xfs_buf_ioapply()