• Home
  • Raw
  • Download

Lines Matching refs:bio

267 static void metapage_read_end_io(struct bio *bio)  in metapage_read_end_io()  argument
269 struct page *page = bio->bi_private; in metapage_read_end_io()
271 if (bio->bi_status) { in metapage_read_end_io()
277 bio_put(bio); in metapage_read_end_io()
322 static void metapage_write_end_io(struct bio *bio) in metapage_write_end_io() argument
324 struct page *page = bio->bi_private; in metapage_write_end_io()
328 if (bio->bi_status) { in metapage_write_end_io()
333 bio_put(bio); in metapage_write_end_io()
338 struct bio *bio = NULL; in metapage_writepage() local
383 if (bio) { in metapage_writepage()
392 if (bio_add_page(bio, page, bio_bytes, bio_offset) < in metapage_writepage()
400 if (!bio->bi_iter.bi_size) in metapage_writepage()
402 submit_bio(bio); in metapage_writepage()
404 bio = NULL; in metapage_writepage()
420 bio = bio_alloc(inode->i_sb->s_bdev, 1, REQ_OP_WRITE, GFP_NOFS); in metapage_writepage()
421 bio->bi_iter.bi_sector = pblock << (inode->i_blkbits - 9); in metapage_writepage()
422 bio->bi_end_io = metapage_write_end_io; in metapage_writepage()
423 bio->bi_private = page; in metapage_writepage()
432 if (bio) { in metapage_writepage()
433 if (bio_add_page(bio, page, bio_bytes, bio_offset) < bio_bytes) in metapage_writepage()
435 if (!bio->bi_iter.bi_size) in metapage_writepage()
438 submit_bio(bio); in metapage_writepage()
459 4, bio, sizeof(*bio), 0); in metapage_writepage()
461 bio_put(bio); in metapage_writepage()
474 struct bio *bio = NULL; in metapage_read_folio() local
496 if (bio) in metapage_read_folio()
497 submit_bio(bio); in metapage_read_folio()
499 bio = bio_alloc(inode->i_sb->s_bdev, 1, REQ_OP_READ, in metapage_read_folio()
501 bio->bi_iter.bi_sector = in metapage_read_folio()
503 bio->bi_end_io = metapage_read_end_io; in metapage_read_folio()
504 bio->bi_private = page; in metapage_read_folio()
507 if (bio_add_page(bio, page, len, offset) < len) in metapage_read_folio()
513 if (bio) in metapage_read_folio()
514 submit_bio(bio); in metapage_read_folio()
522 bio_put(bio); in metapage_read_folio()