Lines Matching refs:store
107 struct dm_exception_store *store; member
188 static sector_t chunk_to_sector(struct dm_exception_store *store, in chunk_to_sector() argument
191 return chunk << store->chunk_shift; in chunk_to_sector()
524 if (!snap_src->store->type->prepare_merge || in __validate_exception_handover()
525 !snap_src->store->type->commit_merge) { in __validate_exception_handover()
540 if (l->store->chunk_size < s->store->chunk_size) in __insert_snapshot()
862 snap->store->chunk_size); in __minimum_chunk_size()
893 hash_size = cow_dev_size >> s->store->chunk_shift; in init_hash_tables()
1062 linear_chunks = s->store->type->prepare_merge(s->store, &old_chunk, in snapshot_merge_next_chunks()
1083 io_size = linear_chunks * s->store->chunk_size; in snapshot_merge_next_chunks()
1086 dest.sector = chunk_to_sector(s->store, old_chunk); in snapshot_merge_next_chunks()
1090 src.sector = chunk_to_sector(s->store, new_chunk); in snapshot_merge_next_chunks()
1158 if (s->store->type->commit_merge(s->store, in merge_callback()
1315 r = dm_exception_store_create(ti, argc, argv, s, &args_used, &s->store); in snapshot_ctr()
1395 s->store->chunk_size = 0; in snapshot_ctr()
1399 r = s->store->type->read_metadata(s->store, dm_add_exception, in snapshot_ctr()
1409 if (!s->store->chunk_size) { in snapshot_ctr()
1415 r = dm_set_target_max_io_len(ti, s->store->chunk_size); in snapshot_ctr()
1431 dm_exception_store_destroy(s->store); in snapshot_ctr()
1467 u.store_swap = snap_dest->store; in __handover_exceptions()
1468 snap_dest->store = snap_src->store; in __handover_exceptions()
1469 snap_dest->store->userspace_supports_overflow = u.store_swap->userspace_supports_overflow; in __handover_exceptions()
1470 snap_src->store = u.store_swap; in __handover_exceptions()
1472 snap_dest->store->snap = snap_dest; in __handover_exceptions()
1473 snap_src->store->snap = snap_src; in __handover_exceptions()
1475 snap_dest->ti->max_io_len = snap_dest->store->chunk_size; in __handover_exceptions()
1528 dm_exception_store_destroy(s->store); in snapshot_dtr()
1646 if (s->store->type->drop_snapshot) in __invalidate_snapshot()
1647 s->store->type->drop_snapshot(s->store); in __invalidate_snapshot()
1754 s->store->type->commit_exception(s->store, &pe->e, !pe->copy_error, in complete_exception()
1822 src.sector = chunk_to_sector(s->store, pe->e.old_chunk); in start_copy()
1823 src.count = min((sector_t)s->store->chunk_size, dev_size - src.sector); in start_copy()
1826 dest.sector = chunk_to_sector(s->store, pe->e.new_chunk); in start_copy()
1888 if (s->store->type->prepare_exception(s->store, &pe->e)) { in __insert_pending_exception()
1930 chunk_to_sector(s->store, dm_chunk_number(e->new_chunk) + in remap_exception()
1932 (bio->bi_iter.bi_sector & s->store->chunk_mask); in remap_exception()
1952 dest.count = s->store->chunk_size; in zero_exception()
1963 (s->store->chunk_size << SECTOR_SHIFT); in io_overlaps_chunk()
1982 chunk = sector_to_chunk(s->store, bio->bi_iter.bi_sector); in snapshot_map()
2070 if (s->store->userspace_supports_overflow) { in snapshot_map()
2157 chunk = sector_to_chunk(s->store, bio->bi_iter.bi_sector); in snapshot_merge_map()
2354 if (snap->store->type->usage) { in snapshot_status()
2357 snap->store->type->usage(snap->store, in snapshot_status()
2381 sz += snap->store->type->status(snap->store, type, result + sz, in snapshot_status()
2423 limits->discard_granularity = snap->store->chunk_size; in snapshot_io_hints()
2424 limits->max_discard_sectors = snap->store->chunk_size; in snapshot_io_hints()
2473 chunk = sector_to_chunk(snap->store, sector); in __origin_write()