Home
last modified time | relevance | path

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

/drivers/md/
Ddm-ebs-target.c24 struct dm_bufio_client *bufio; /* Use dm-bufio for read and read-modify-write processing. */ member
82 cur_len = min(dm_bufio_get_block_size(ec->bufio) - buf_off, bv_len); in __ebs_rw_bvec()
85 if (op == REQ_OP_READ || buf_off || bv_len < dm_bufio_get_block_size(ec->bufio)) in __ebs_rw_bvec()
86 ba = dm_bufio_read(ec->bufio, block, &b); in __ebs_rw_bvec()
88 ba = dm_bufio_new(ec->bufio, block, &b); in __ebs_rw_bvec()
162 return blocks ? dm_bufio_issue_discard(ec->bufio, block, blocks) : 0; in __ebs_discard_bio()
172 dm_bufio_forget_buffers(ec->bufio, __sector_to_block(ec, sector), blocks); in __ebs_forget_bio()
196 dm_bufio_prefetch(ec->bufio, block1, __nr_blocks(ec, bio)); in __ebs_process_bios()
200 dm_bufio_prefetch(ec->bufio, block1, 1); in __ebs_process_bios()
202 dm_bufio_prefetch(ec->bufio, block2, 1); in __ebs_process_bios()
[all …]
Ddm-verity-fec.c72 res = dm_bufio_read(v->fec->bufio, block, buf); in fec_read_parity()
207 struct dm_bufio_client *bufio; in fec_read_bufs() local
235 bufio = v->fec->data_bufio; in fec_read_bufs()
248 bufio = v->bufio; in fec_read_bufs()
251 bbuf = dm_bufio_read(bufio, block, &buf); in fec_read_bufs()
266 if (bufio == v->fec->data_bufio && in fec_read_bufs()
559 if (f->bufio) in verity_fec_dtr()
560 dm_bufio_client_destroy(f->bufio); in verity_fec_dtr()
740 if (dm_bufio_get_device_size(v->bufio) < f->hash_blocks) { in verity_fec_ctr()
751 f->bufio = dm_bufio_client_create(f->dev->bdev, in verity_fec_ctr()
[all …]
Ddm-verity-target.c296 data = dm_bufio_get(v->bufio, hash_block, &buf); in verity_verify_level()
306 data = dm_bufio_read(v->bufio, hash_block, &buf); in verity_verify_level()
742 dm_bufio_prefetch(v->bufio, hash_block_start, in verity_prefetch_io()
991 if (v->bufio) in verity_dtr()
992 dm_bufio_client_destroy(v->bufio); in verity_dtr()
1440 v->bufio = dm_bufio_client_create(v->hash_dev->bdev, in verity_ctr()
1444 if (IS_ERR(v->bufio)) { in verity_ctr()
1446 r = PTR_ERR(v->bufio); in verity_ctr()
1447 v->bufio = NULL; in verity_ctr()
1451 if (dm_bufio_get_device_size(v->bufio) < v->hash_blocks) { in verity_ctr()
Ddm-verity.h40 struct dm_bufio_client *bufio; member
Ddm-verity-fec.h38 struct dm_bufio_client *bufio; /* for parity data access */ member
Ddm-integrity.c171 struct dm_bufio_client *bufio; member
1435 data = dm_bufio_read(ic->bufio, *metadata_block, &b); in dm_integrity_rw_tag()
1529 fr.io_req.client = dm_bufio_get_dm_io_client(ic->bufio), in dm_integrity_flush_buffers()
1539 r = dm_bufio_write_dirty_buffers(ic->bufio); in dm_integrity_flush_buffers()
2640 dm_bufio_write_dirty_buffers_async(ic->bufio); in do_journal_write()
4517 ic->bufio = dm_bufio_client_create(ic->meta_dev ? ic->meta_dev->bdev : ic->dev->bdev, in dm_integrity_ctr()
4519 if (IS_ERR(ic->bufio)) { in dm_integrity_ctr()
4520 r = PTR_ERR(ic->bufio); in dm_integrity_ctr()
4522 ic->bufio = NULL; in dm_integrity_ctr()
4525 dm_bufio_set_sector_offset(ic->bufio, ic->start + ic->initial_sectors); in dm_integrity_ctr()
[all …]
DMakefile57 obj-$(CONFIG_DM_BUFIO) += dm-bufio.o
/drivers/md/persistent-data/
Ddm-block-manager.c374 struct dm_bufio_client *bufio; member
391 bm->bufio = dm_bufio_client_create(bdev, block_size, max_held_per_thread, in dm_block_manager_create()
396 if (IS_ERR(bm->bufio)) { in dm_block_manager_create()
397 r = PTR_ERR(bm->bufio); in dm_block_manager_create()
413 dm_bufio_client_destroy(bm->bufio); in dm_block_manager_destroy()
420 dm_bufio_client_reset(bm->bufio); in dm_block_manager_reset()
426 return dm_bufio_get_block_size(bm->bufio); in dm_bm_block_size()
432 return dm_bufio_get_device_size(bm->bufio); in dm_bm_nr_blocks()
444 r = v->check(v, (struct dm_block *) buf, dm_bufio_get_block_size(bm->bufio)); in dm_bm_validate_buffer()
470 p = dm_bufio_read(bm->bufio, b, (struct dm_buffer **) result); in dm_bm_read_lock()
[all …]