Searched refs:snap_dest (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/md/
H A Ddm-snap.c412 * snap_dest - a snapshot capable of receiving exception handover.
416 * Possible return values and states of snap_src and snap_dest.
419 * 2: snap_src, snap_dest - waiting for handover
421 * 1: NULL, snap_dest - source got destroyed without handover
425 struct dm_snapshot **snap_dest, __find_snapshots_sharing_cow()
450 } else if (snap_dest) __find_snapshots_sharing_cow()
451 *snap_dest = s; __find_snapshots_sharing_cow()
466 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; __validate_exception_handover() local
470 if ((__find_snapshots_sharing_cow(snap, &snap_src, &snap_dest, __validate_exception_handover()
472 snap_dest) { __validate_exception_handover()
1298 struct dm_snapshot *snap_dest) __handover_exceptions()
1308 u.table_swap = snap_dest->complete; __handover_exceptions()
1309 snap_dest->complete = snap_src->complete; __handover_exceptions()
1312 u.store_swap = snap_dest->store; __handover_exceptions()
1313 snap_dest->store = snap_src->store; __handover_exceptions()
1314 snap_dest->store->userspace_supports_overflow = u.store_swap->userspace_supports_overflow; __handover_exceptions()
1317 snap_dest->store->snap = snap_dest; __handover_exceptions()
1320 snap_dest->ti->max_io_len = snap_dest->store->chunk_size; __handover_exceptions()
1321 snap_dest->valid = snap_src->valid; __handover_exceptions()
1322 snap_dest->snapshot_overflowed = snap_src->snapshot_overflowed; __handover_exceptions()
1336 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; snapshot_dtr() local
1340 (void) __find_snapshots_sharing_cow(s, &snap_src, &snap_dest, NULL); snapshot_dtr()
1341 if (snap_src && snap_dest && (s == snap_src)) { snapshot_dtr()
1342 down_write(&snap_dest->lock); snapshot_dtr()
1343 snap_dest->valid = 0; snapshot_dtr()
1344 up_write(&snap_dest->lock); snapshot_dtr()
1878 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL; snapshot_preresume() local
1881 (void) __find_snapshots_sharing_cow(s, &snap_src, &snap_dest, NULL); snapshot_preresume()
1882 if (snap_src && snap_dest) { snapshot_preresume()
1903 struct dm_snapshot *snap_src = NULL, *snap_dest = NULL, *snap_merging = NULL; snapshot_resume() local
1937 (void) __find_snapshots_sharing_cow(s, &snap_src, &snap_dest, NULL); snapshot_resume()
1938 if (snap_src && snap_dest) { snapshot_resume()
1940 down_write_nested(&snap_dest->lock, SINGLE_DEPTH_NESTING); snapshot_resume()
1941 __handover_exceptions(snap_src, snap_dest); snapshot_resume()
1942 up_write(&snap_dest->lock); snapshot_resume()
423 __find_snapshots_sharing_cow(struct dm_snapshot *snap, struct dm_snapshot **snap_src, struct dm_snapshot **snap_dest, struct dm_snapshot **snap_merge) __find_snapshots_sharing_cow() argument
1297 __handover_exceptions(struct dm_snapshot *snap_src, struct dm_snapshot *snap_dest) __handover_exceptions() argument

Completed in 45 milliseconds