Lines Matching refs:dm_snapshot
49 struct dm_snapshot { struct
151 struct dm_dev *dm_snap_origin(struct dm_snapshot *s) in dm_snap_origin() argument
157 struct dm_dev *dm_snap_cow(struct dm_snapshot *s) in dm_snap_cow()
189 struct dm_snapshot *snap;
237 static void track_chunk(struct dm_snapshot *s, struct bio *bio, chunk_t chunk) in track_chunk()
249 static void stop_tracking_chunk(struct dm_snapshot *s, struct bio *bio) in stop_tracking_chunk()
259 static int __chunk_is_tracked(struct dm_snapshot *s, chunk_t chunk) in __chunk_is_tracked()
283 static void __check_for_conflicting_io(struct dm_snapshot *s, chunk_t chunk) in __check_for_conflicting_io()
423 static int __find_snapshots_sharing_cow(struct dm_snapshot *snap, in __find_snapshots_sharing_cow()
424 struct dm_snapshot **snap_src, in __find_snapshots_sharing_cow()
425 struct dm_snapshot **snap_dest, in __find_snapshots_sharing_cow()
426 struct dm_snapshot **snap_merge) in __find_snapshots_sharing_cow()
428 struct dm_snapshot *s; in __find_snapshots_sharing_cow()
464 static int __validate_exception_handover(struct dm_snapshot *snap) in __validate_exception_handover()
466 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; in __validate_exception_handover()
467 struct dm_snapshot *snap_merge = NULL; in __validate_exception_handover()
509 static void __insert_snapshot(struct origin *o, struct dm_snapshot *s) in __insert_snapshot()
511 struct dm_snapshot *l; in __insert_snapshot()
528 static int register_snapshot(struct dm_snapshot *snap) in register_snapshot()
571 static void reregister_snapshot(struct dm_snapshot *s) in reregister_snapshot()
583 static void unregister_snapshot(struct dm_snapshot *s) in unregister_snapshot()
684 static struct dm_snap_pending_exception *alloc_pending_exception(struct dm_snapshot *s) in alloc_pending_exception()
697 struct dm_snapshot *s = pe->snap; in free_pending_exception()
752 struct dm_snapshot *s = context; in dm_add_exception()
775 struct dm_snapshot *snap; in __minimum_chunk_size()
801 static int init_hash_tables(struct dm_snapshot *s) in init_hash_tables()
838 static void merge_shutdown(struct dm_snapshot *s) in merge_shutdown()
845 static struct bio *__release_queued_bios_after_merge(struct dm_snapshot *s) in __release_queued_bios_after_merge()
856 static int __remove_single_exception_chunk(struct dm_snapshot *s, in __remove_single_exception_chunk()
907 static int remove_single_exception_chunk(struct dm_snapshot *s) in remove_single_exception_chunk()
935 static int origin_write_extent(struct dm_snapshot *merging_snap,
961 static void snapshot_merge_next_chunks(struct dm_snapshot *s) in snapshot_merge_next_chunks()
1050 struct dm_snapshot *s = context; in merge_callback()
1084 static void start_merge(struct dm_snapshot *s) in start_merge()
1093 static void stop_merge(struct dm_snapshot *s) in stop_merge()
1105 struct dm_snapshot *s; in snapshot_ctr()
1288 static void __free_exceptions(struct dm_snapshot *s) in __free_exceptions()
1297 static void __handover_exceptions(struct dm_snapshot *snap_src, in __handover_exceptions()
1298 struct dm_snapshot *snap_dest) in __handover_exceptions()
1335 struct dm_snapshot *s = ti->private; in snapshot_dtr()
1336 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; in snapshot_dtr()
1402 static void retry_origin_bios(struct dm_snapshot *s, struct bio *bio) in retry_origin_bios()
1432 static void __invalidate_snapshot(struct dm_snapshot *s, int err) in __invalidate_snapshot()
1454 struct dm_snapshot *s = pe->snap; in pending_complete()
1524 struct dm_snapshot *s = pe->snap; in complete_exception()
1538 struct dm_snapshot *s = pe->snap; in copy_callback()
1573 struct dm_snapshot *s = pe->snap; in start_copy()
1602 struct dm_snapshot *s = pe->snap; in start_full_bio()
1619 __lookup_pending_exception(struct dm_snapshot *s, chunk_t chunk) in __lookup_pending_exception()
1638 __find_pending_exception(struct dm_snapshot *s, in __find_pending_exception()
1667 static void remap_exception(struct dm_snapshot *s, struct dm_exception *e, in remap_exception()
1680 struct dm_snapshot *s = ti->private; in snapshot_map()
1800 struct dm_snapshot *s = ti->private; in snapshot_merge_map()
1859 struct dm_snapshot *s = ti->private; in snapshot_end_io()
1869 struct dm_snapshot *s = ti->private; in snapshot_merge_presuspend()
1877 struct dm_snapshot *s = ti->private; in snapshot_preresume()
1878 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; in snapshot_preresume()
1902 struct dm_snapshot *s = ti->private; in snapshot_resume()
1903 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL, *snap_merging = NULL; in snapshot_resume()
1976 struct dm_snapshot *s = ti->private; in snapshot_merge_resume()
1995 struct dm_snapshot *snap = ti->private; in snapshot_status()
2045 struct dm_snapshot *snap = ti->private; in snapshot_iterate_devices()
2075 struct dm_snapshot *snap; in __origin_write()
2211 static int origin_write_extent(struct dm_snapshot *merging_snap, in origin_write_extent()