Lines Matching defs:bio
17 #include <linux/bio.h>
194 static void gfs2_meta_read_endio(struct bio *bio)
199 bio_for_each_segment_all(bvec, bio, iter_all) {
209 bh->b_end_io(bh, !bio->bi_status);
213 bio_put(bio);
217 * Submit several consecutive buffer head I/O requests as a single bio I/O
224 struct bio *bio;
226 bio = bio_alloc(bh->b_bdev, num, opf, GFP_NOIO);
227 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9);
230 if (!bio_add_page(bio, bh->b_page, bh->b_size, bh_offset(bh))) {
231 BUG_ON(bio->bi_iter.bi_size == 0);
237 bio->bi_end_io = gfs2_meta_read_endio;
238 submit_bio(bio);