Home
last modified time | relevance | path

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

/linux/fs/bcachefs/
H A Dio_write.h98 struct bch_write_bio *wbio = to_wbio(bio); in wbio_init() local
100 memset(&wbio->wbio, 0, sizeof(wbio->wbio)); in wbio_init()
101 return wbio; in wbio_init()
H A Dbtree_io.c1850 struct btree_write_bio *wbio = in btree_node_write_work() local
1852 struct bch_fs *c = wbio->wbio.c; in btree_node_write_work()
1853 struct btree *b = wbio->wbio.bio.bi_private; in btree_node_write_work()
1857 wbio->data_bytes, in btree_node_write_work()
1858 wbio->wbio.used_mempool, in btree_node_write_work()
1859 wbio->data); in btree_node_write_work()
1861 bch2_bkey_drop_ptrs(bkey_i_to_s(&wbio->key), ptr, in btree_node_write_work()
1862 bch2_dev_list_has_dev(wbio->wbio.failed, ptr->dev)); in btree_node_write_work()
1864 if (!bch2_bkey_nr_ptrs(bkey_i_to_s_c(&wbio->key))) { in btree_node_write_work()
1869 if (wbio->wbio.first_btree_write) { in btree_node_write_work()
[all …]
H A Dfs-io-buffered.c373 struct bio *bio = &io->op.wbio.bio; in bch_io_full()
383 struct bio *bio = &io->op.wbio.bio; in bch2_writepage_io_done()
441 bio_put(&io->op.wbio.bio); in bch2_writepage_io_done()
469 struct bch_writepage_io, op.wbio.bio); in bch2_writepage_io_alloc()
482 op->wbio.bio.bi_iter.bi_sector = sector; in bch2_writepage_io_alloc()
483 op->wbio.bio.bi_opf = wbc_to_write_flags(wbc); in bch2_writepage_io_alloc()
595 bio_end_sector(&w->io->op.wbio.bio) != sector)) in __bch2_writepage()
605 BUG_ON(!bio_add_folio(&w->io->op.wbio.bio, folio, in __bch2_writepage()
609 WARN_ONCE((bio_end_sector(&w->io->op.wbio.bio) << 9) > in __bch2_writepage()
613 bio_end_sector(&w->io->op.wbio.bio) << 9, in __bch2_writepage()
[all …]
H A Dfs-io-direct.c283 struct bio *bio = &dio->op.wbio.bio; in bch2_dio_write_check_allocated()
389 bio_put(&dio->op.wbio.bio); in bch2_dio_write_done()
411 struct bio *bio = &dio->op.wbio.bio; in bch2_dio_write_end()
443 struct bio *bio = &dio->op.wbio.bio; in bch2_dio_write_loop()
559 bio_reset(&dio->op.wbio.bio, NULL, REQ_OP_WRITE); in bch2_dio_write_continue()
632 dio = container_of(bio, struct dio_write, op.wbio.bio); in bch2_direct_write()
683 4, offsetof(struct dio_write, op.wbio.bio), in bch2_fs_fs_io_direct_init()
H A Ddata_update.c421 BUG_ON(!m->op.wbio.bio.bi_vcnt); in bch2_data_update_read_done()
424 m->op.wbio.bio.bi_iter.bi_size = crc.compressed_size << 9; in bch2_data_update_read_done()
439 bch2_bio_free_pages_pool(c, &update->op.wbio.bio); in bch2_data_update_exit()
446 struct bio *bio = &update->op.wbio.bio; in bch2_update_unwritten_extent()
H A Dmove.c294 bio_init(&io->write.op.wbio.bio, NULL, io->bi_inline_vecs, pages, 0); in bch2_move_extent()
295 bio_set_prio(&io->write.op.wbio.bio, in bch2_move_extent()
298 if (bch2_bio_alloc_pages(&io->write.op.wbio.bio, sectors << 9, in bch2_move_extent()
357 bio_free_pages(&io->write.op.wbio.bio); in bch2_move_extent()
H A Dbtree_io.h55 struct bch_write_bio wbio; member
H A Dsuper.c896 offsetof(struct btree_write_bio, wbio.bio)), in bch2_fs_alloc()
/linux/drivers/md/
H A Draid1.c2321 struct bio *wbio; in sync_request_write() local
2336 wbio = r1_bio->bios[i]; in sync_request_write()
2337 if (wbio->bi_end_io == NULL || in sync_request_write()
2338 (wbio->bi_end_io == end_sync_read && in sync_request_write()
2347 wbio->bi_opf = REQ_OP_WRITE; in sync_request_write()
2349 wbio->bi_opf |= MD_FAILFAST; in sync_request_write()
2351 wbio->bi_end_io = end_sync_write; in sync_request_write()
2353 md_sync_acct(conf->mirrors[i].rdev->bdev, bio_sectors(wbio)); in sync_request_write()
2355 submit_bio_noacct(wbio); in sync_request_write()
2494 struct bio *wbio; in narrow_write_error() local
[all …]
H A Draid10.c2528 struct bio *wbio = r10_bio->devs[1].bio; in recovery_request_write() local
2540 if (wbio->bi_end_io) in recovery_request_write()
2552 if (wbio->bi_end_io) { in recovery_request_write()
2554 md_sync_acct(conf->mirrors[d].rdev->bdev, bio_sectors(wbio)); in recovery_request_write()
2555 submit_bio_noacct(wbio); in recovery_request_write()
2784 struct bio *wbio; in narrow_write_error() local
2789 wbio = bio_alloc_clone(rdev->bdev, bio, GFP_NOIO, in narrow_write_error()
2791 bio_trim(wbio, sector - bio->bi_iter.bi_sector, sectors); in narrow_write_error()
2793 wbio->bi_iter.bi_sector = wsector + in narrow_write_error()
2795 wbio->bi_opf = REQ_OP_WRITE; in narrow_write_error()
[all …]