Lines Matching refs:bufio
24 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()
226 r = write ? dm_bufio_write_dirty_buffers(ec->bufio) : 0; in __ebs_process_bios()
316 ec->bufio = dm_bufio_client_create(ec->dev->bdev, to_bytes(ec->u_bs), 1, in ebs_ctr()
318 if (IS_ERR(ec->bufio)) { in ebs_ctr()
320 r = PTR_ERR(ec->bufio); in ebs_ctr()
321 ec->bufio = NULL; in ebs_ctr()
353 if (ec->bufio) in ebs_dtr()
354 dm_bufio_client_destroy(ec->bufio); in ebs_dtr()