Lines Matching refs:dm_snapshot
49 struct dm_snapshot {
172 struct dm_dev *dm_snap_origin(struct dm_snapshot *s)
178 struct dm_dev *dm_snap_cow(struct dm_snapshot *s)
210 struct dm_snapshot *snap;
259 static void track_chunk(struct dm_snapshot *s, struct bio *bio, chunk_t chunk)
271 static void stop_tracking_chunk(struct dm_snapshot *s, struct bio *bio)
281 static int __chunk_is_tracked(struct dm_snapshot *s, chunk_t chunk)
305 static void __check_for_conflicting_io(struct dm_snapshot *s, chunk_t chunk)
448 static int __find_snapshots_sharing_cow(struct dm_snapshot *snap,
449 struct dm_snapshot **snap_src,
450 struct dm_snapshot **snap_dest,
451 struct dm_snapshot **snap_merge)
453 struct dm_snapshot *s;
489 static int __validate_exception_handover(struct dm_snapshot *snap)
491 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL;
492 struct dm_snapshot *snap_merge = NULL;
532 static void __insert_snapshot(struct origin *o, struct dm_snapshot *s)
534 struct dm_snapshot *l;
551 static int register_snapshot(struct dm_snapshot *snap)
594 static void reregister_snapshot(struct dm_snapshot *s)
606 static void unregister_snapshot(struct dm_snapshot *s)
635 static void dm_exception_table_lock_init(struct dm_snapshot *s, chunk_t chunk,
740 static struct dm_snap_pending_exception *alloc_pending_exception(struct dm_snapshot *s)
753 struct dm_snapshot *s = pe->snap;
822 struct dm_snapshot *s = context;
855 struct dm_snapshot *snap;
882 static int init_hash_tables(struct dm_snapshot *s)
919 static void merge_shutdown(struct dm_snapshot *s)
926 static struct bio *__release_queued_bios_after_merge(struct dm_snapshot *s)
937 static int __remove_single_exception_chunk(struct dm_snapshot *s,
986 static int remove_single_exception_chunk(struct dm_snapshot *s)
1014 static int origin_write_extent(struct dm_snapshot *merging_snap,
1040 static void snapshot_merge_next_chunks(struct dm_snapshot *s)
1128 struct dm_snapshot *s = context;
1167 static void start_merge(struct dm_snapshot *s)
1176 static void stop_merge(struct dm_snapshot *s)
1183 static int parse_snapshot_features(struct dm_arg_set *as, struct dm_snapshot *s,
1239 struct dm_snapshot *s;
1424 static void __free_exceptions(struct dm_snapshot *s)
1433 static void __handover_exceptions(struct dm_snapshot *snap_src,
1434 struct dm_snapshot *snap_dest)
1471 struct dm_snapshot *s = ti->private;
1472 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL;
1520 static void account_start_copy(struct dm_snapshot *s)
1527 static void account_end_copy(struct dm_snapshot *s)
1538 static bool wait_for_in_progress(struct dm_snapshot *s, bool unlock_origins)
1586 static void retry_origin_bios(struct dm_snapshot *s, struct bio *bio)
1616 static void __invalidate_snapshot(struct dm_snapshot *s, int err)
1634 static void invalidate_snapshot(struct dm_snapshot *s, int err)
1645 struct dm_snapshot *s = pe->snap;
1731 struct dm_snapshot *s = pe->snap;
1745 struct dm_snapshot *s = pe->snap;
1794 struct dm_snapshot *s = pe->snap;
1824 struct dm_snapshot *s = pe->snap;
1841 __lookup_pending_exception(struct dm_snapshot *s, chunk_t chunk)
1858 __insert_pending_exception(struct dm_snapshot *s,
1891 __find_pending_exception(struct dm_snapshot *s,
1905 static void remap_exception(struct dm_snapshot *s, struct dm_exception *e,
1918 struct dm_snapshot *s = bio->bi_private;
1925 static void zero_exception(struct dm_snapshot *s, struct dm_exception *e,
1940 static bool io_overlaps_chunk(struct dm_snapshot *s, struct bio *bio)
1949 struct dm_snapshot *s = ti->private;
2117 struct dm_snapshot *s = ti->private;
2183 struct dm_snapshot *s = ti->private;
2193 struct dm_snapshot *s = ti->private;
2201 struct dm_snapshot *s = ti->private;
2202 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL;
2224 struct dm_snapshot *s = ti->private;
2225 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL, *snap_merging = NULL;
2298 struct dm_snapshot *s = ti->private;
2317 struct dm_snapshot *snap = ti->private;
2385 struct dm_snapshot *snap = ti->private;
2398 struct dm_snapshot *snap = ti->private;
2401 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL;
2436 struct dm_snapshot *snap;
2564 struct dm_snapshot *s;
2591 static int origin_write_extent(struct dm_snapshot *merging_snap,