Lines Matching refs:snap_src
449 struct dm_snapshot **snap_src, in __find_snapshots_sharing_cow() argument
473 if (snap_src) in __find_snapshots_sharing_cow()
474 *snap_src = s; in __find_snapshots_sharing_cow()
491 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; in __validate_exception_handover() local
495 if ((__find_snapshots_sharing_cow(snap, &snap_src, &snap_dest, in __validate_exception_handover()
507 if (!snap_src) in __validate_exception_handover()
524 if (!snap_src->store->type->prepare_merge || in __validate_exception_handover()
525 !snap_src->store->type->commit_merge) { in __validate_exception_handover()
1453 static void __handover_exceptions(struct dm_snapshot *snap_src, in __handover_exceptions() argument
1465 snap_dest->complete = snap_src->complete; in __handover_exceptions()
1466 snap_src->complete = u.table_swap; in __handover_exceptions()
1469 snap_dest->store = snap_src->store; in __handover_exceptions()
1471 snap_src->store = u.store_swap; in __handover_exceptions()
1474 snap_src->store->snap = snap_src; in __handover_exceptions()
1477 snap_dest->valid = snap_src->valid; in __handover_exceptions()
1478 snap_dest->snapshot_overflowed = snap_src->snapshot_overflowed; in __handover_exceptions()
1483 snap_src->valid = 0; in __handover_exceptions()
1492 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; in snapshot_dtr() local
1496 (void) __find_snapshots_sharing_cow(s, &snap_src, &snap_dest, NULL); in snapshot_dtr()
1497 if (snap_src && snap_dest && (s == snap_src)) { in snapshot_dtr()
2223 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; in snapshot_preresume() local
2226 (void) __find_snapshots_sharing_cow(s, &snap_src, &snap_dest, NULL); in snapshot_preresume()
2227 if (snap_src && snap_dest) { in snapshot_preresume()
2228 down_read(&snap_src->lock); in snapshot_preresume()
2229 if (s == snap_src) { in snapshot_preresume()
2233 } else if (!dm_suspended(snap_src->ti)) { in snapshot_preresume()
2238 up_read(&snap_src->lock); in snapshot_preresume()
2248 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL, *snap_merging = NULL; in snapshot_resume() local
2282 (void) __find_snapshots_sharing_cow(s, &snap_src, &snap_dest, NULL); in snapshot_resume()
2283 if (snap_src && snap_dest) { in snapshot_resume()
2284 down_write(&snap_src->lock); in snapshot_resume()
2286 __handover_exceptions(snap_src, snap_dest); in snapshot_resume()
2288 up_write(&snap_src->lock); in snapshot_resume()
2415 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; in snapshot_io_hints() local
2419 (void) __find_snapshots_sharing_cow(snap, &snap_src, &snap_dest, NULL); in snapshot_io_hints()
2420 if (snap_src && snap_dest) in snapshot_io_hints()
2421 snap = snap_src; in snapshot_io_hints()