Lines Matching refs:snap_src
454 struct dm_snapshot **snap_src, in __find_snapshots_sharing_cow() argument
478 if (snap_src) in __find_snapshots_sharing_cow()
479 *snap_src = s; in __find_snapshots_sharing_cow()
496 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; in __validate_exception_handover() local
500 if ((__find_snapshots_sharing_cow(snap, &snap_src, &snap_dest, in __validate_exception_handover()
511 if (!snap_src) in __validate_exception_handover()
528 if (!snap_src->store->type->prepare_merge || in __validate_exception_handover()
529 !snap_src->store->type->commit_merge) { in __validate_exception_handover()
1430 static void __handover_exceptions(struct dm_snapshot *snap_src, in __handover_exceptions() argument
1442 snap_dest->complete = snap_src->complete; in __handover_exceptions()
1443 snap_src->complete = u.table_swap; in __handover_exceptions()
1446 snap_dest->store = snap_src->store; in __handover_exceptions()
1448 snap_src->store = u.store_swap; in __handover_exceptions()
1451 snap_src->store->snap = snap_src; in __handover_exceptions()
1454 snap_dest->valid = snap_src->valid; in __handover_exceptions()
1455 snap_dest->snapshot_overflowed = snap_src->snapshot_overflowed; in __handover_exceptions()
1460 snap_src->valid = 0; in __handover_exceptions()
1469 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; in snapshot_dtr() local
1473 (void) __find_snapshots_sharing_cow(s, &snap_src, &snap_dest, NULL); in snapshot_dtr()
1474 if (snap_src && snap_dest && (s == snap_src)) { in snapshot_dtr()
2199 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; in snapshot_preresume() local
2202 (void) __find_snapshots_sharing_cow(s, &snap_src, &snap_dest, NULL); in snapshot_preresume()
2203 if (snap_src && snap_dest) { in snapshot_preresume()
2204 down_read(&snap_src->lock); in snapshot_preresume()
2205 if (s == snap_src) { in snapshot_preresume()
2208 } else if (!dm_suspended(snap_src->ti)) { in snapshot_preresume()
2212 up_read(&snap_src->lock); in snapshot_preresume()
2222 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL, *snap_merging = NULL; in snapshot_resume() local
2256 (void) __find_snapshots_sharing_cow(s, &snap_src, &snap_dest, NULL); in snapshot_resume()
2257 if (snap_src && snap_dest) { in snapshot_resume()
2258 down_write(&snap_src->lock); in snapshot_resume()
2260 __handover_exceptions(snap_src, snap_dest); in snapshot_resume()
2262 up_write(&snap_src->lock); in snapshot_resume()
2398 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; in snapshot_io_hints() local
2402 (void) __find_snapshots_sharing_cow(snap, &snap_src, &snap_dest, NULL); in snapshot_io_hints()
2403 if (snap_src && snap_dest) in snapshot_io_hints()
2404 snap = snap_src; in snapshot_io_hints()