Lines Matching refs:snap_src
417 struct dm_snapshot **snap_src, in __find_snapshots_sharing_cow() argument
441 if (snap_src) in __find_snapshots_sharing_cow()
442 *snap_src = s; in __find_snapshots_sharing_cow()
459 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; in __validate_exception_handover() local
463 if ((__find_snapshots_sharing_cow(snap, &snap_src, &snap_dest, in __validate_exception_handover()
475 if (!snap_src) in __validate_exception_handover()
492 if (!snap_src->store->type->prepare_merge || in __validate_exception_handover()
493 !snap_src->store->type->commit_merge) { in __validate_exception_handover()
1280 static void __handover_exceptions(struct dm_snapshot *snap_src, in __handover_exceptions() argument
1292 snap_dest->complete = snap_src->complete; in __handover_exceptions()
1293 snap_src->complete = u.table_swap; in __handover_exceptions()
1296 snap_dest->store = snap_src->store; in __handover_exceptions()
1297 snap_src->store = u.store_swap; in __handover_exceptions()
1300 snap_src->store->snap = snap_src; in __handover_exceptions()
1303 snap_dest->valid = snap_src->valid; in __handover_exceptions()
1308 snap_src->valid = 0; in __handover_exceptions()
1317 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; in snapshot_dtr() local
1321 (void) __find_snapshots_sharing_cow(s, &snap_src, &snap_dest, NULL); in snapshot_dtr()
1322 if (snap_src && snap_dest && (s == snap_src)) { in snapshot_dtr()
1856 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; in snapshot_preresume() local
1859 (void) __find_snapshots_sharing_cow(s, &snap_src, &snap_dest, NULL); in snapshot_preresume()
1860 if (snap_src && snap_dest) { in snapshot_preresume()
1861 down_read(&snap_src->lock); in snapshot_preresume()
1862 if (s == snap_src) { in snapshot_preresume()
1866 } else if (!dm_suspended(snap_src->ti)) { in snapshot_preresume()
1871 up_read(&snap_src->lock); in snapshot_preresume()
1881 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL, *snap_merging = NULL; in snapshot_resume() local
1915 (void) __find_snapshots_sharing_cow(s, &snap_src, &snap_dest, NULL); in snapshot_resume()
1916 if (snap_src && snap_dest) { in snapshot_resume()
1917 down_write(&snap_src->lock); in snapshot_resume()
1919 __handover_exceptions(snap_src, snap_dest); in snapshot_resume()
1921 up_write(&snap_src->lock); in snapshot_resume()