Lines Matching refs:dm_snapshot
48 struct dm_snapshot {
176 struct dm_dev *dm_snap_origin(struct dm_snapshot *s)
182 struct dm_dev *dm_snap_cow(struct dm_snapshot *s)
214 struct dm_snapshot *snap;
261 static void track_chunk(struct dm_snapshot *s, struct bio *bio, chunk_t chunk)
273 static void stop_tracking_chunk(struct dm_snapshot *s, struct bio *bio)
283 static int __chunk_is_tracked(struct dm_snapshot *s, chunk_t chunk)
307 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;
534 static void __insert_snapshot(struct origin *o, struct dm_snapshot *s)
536 struct dm_snapshot *l;
553 static int register_snapshot(struct dm_snapshot *snap)
596 static void reregister_snapshot(struct dm_snapshot *s)
608 static void unregister_snapshot(struct dm_snapshot *s)
637 static void dm_exception_table_lock_init(struct dm_snapshot *s, chunk_t chunk,
741 static struct dm_snap_pending_exception *alloc_pending_exception(struct dm_snapshot *s)
754 struct dm_snapshot *s = pe->snap;
823 struct dm_snapshot *s = context;
856 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,
988 static int remove_single_exception_chunk(struct dm_snapshot *s)
1016 static int origin_write_extent(struct dm_snapshot *merging_snap,
1042 static void snapshot_merge_next_chunks(struct dm_snapshot *s)
1129 static int flush_data(struct dm_snapshot *s)
1142 struct dm_snapshot *s = context;
1181 static void start_merge(struct dm_snapshot *s)
1190 static void stop_merge(struct dm_snapshot *s)
1197 static int parse_snapshot_features(struct dm_arg_set *as, struct dm_snapshot *s,
1253 struct dm_snapshot *s;
1443 static void __free_exceptions(struct dm_snapshot *s)
1452 static void __handover_exceptions(struct dm_snapshot *snap_src,
1453 struct dm_snapshot *snap_dest)
1490 struct dm_snapshot *s = ti->private;
1491 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL;
1541 static void account_start_copy(struct dm_snapshot *s)
1548 static void account_end_copy(struct dm_snapshot *s)
1559 static bool wait_for_in_progress(struct dm_snapshot *s, bool unlock_origins)
1606 static void retry_origin_bios(struct dm_snapshot *s, struct bio *bio)
1636 static void __invalidate_snapshot(struct dm_snapshot *s, int err)
1654 static void invalidate_snapshot(struct dm_snapshot *s, int err)
1665 struct dm_snapshot *s = pe->snap;
1751 struct dm_snapshot *s = pe->snap;
1765 struct dm_snapshot *s = pe->snap;
1814 struct dm_snapshot *s = pe->snap;
1844 struct dm_snapshot *s = pe->snap;
1861 __lookup_pending_exception(struct dm_snapshot *s, chunk_t chunk)
1878 __insert_pending_exception(struct dm_snapshot *s,
1911 __find_pending_exception(struct dm_snapshot *s,
1925 static void remap_exception(struct dm_snapshot *s, struct dm_exception *e,
1938 struct dm_snapshot *s = bio->bi_private;
1945 static void zero_exception(struct dm_snapshot *s, struct dm_exception *e,
1960 static bool io_overlaps_chunk(struct dm_snapshot *s, struct bio *bio)
1969 struct dm_snapshot *s = ti->private;
2137 struct dm_snapshot *s = ti->private;
2203 struct dm_snapshot *s = ti->private;
2213 struct dm_snapshot *s = ti->private;
2221 struct dm_snapshot *s = ti->private;
2222 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL;
2246 struct dm_snapshot *s = ti->private;
2247 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL, *snap_merging = NULL;
2320 struct dm_snapshot *s = ti->private;
2339 struct dm_snapshot *snap = ti->private;
2398 struct dm_snapshot *snap = ti->private;
2411 struct dm_snapshot *snap = ti->private;
2414 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL;
2448 struct dm_snapshot *snap;
2576 struct dm_snapshot *s;
2602 static int origin_write_extent(struct dm_snapshot *merging_snap,