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

/linux-4.4.14/drivers/md/
H A Ddm-snap.c411 * snap_src - a snapshot suitable for use as a source of exception handover
416 * Possible return values and states of snap_src and snap_dest.
418 * 1: snap_src, NULL - normal snapshot
419 * 2: snap_src, snap_dest - waiting for handover
420 * 2: snap_src, NULL - handed over, waiting for old to be deleted
424 struct dm_snapshot **snap_src, __find_snapshots_sharing_cow()
448 if (snap_src) __find_snapshots_sharing_cow()
449 *snap_src = 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()
479 * If no snap_src was found, snap cannot become a handover __validate_exception_handover()
482 if (!snap_src) __validate_exception_handover()
499 if (!snap_src->store->type->prepare_merge || __validate_exception_handover()
500 !snap_src->store->type->commit_merge) { __validate_exception_handover()
1297 static void __handover_exceptions(struct dm_snapshot *snap_src, __handover_exceptions() argument
1309 snap_dest->complete = snap_src->complete; __handover_exceptions()
1310 snap_src->complete = u.table_swap; __handover_exceptions()
1313 snap_dest->store = snap_src->store; __handover_exceptions()
1315 snap_src->store = u.store_swap; __handover_exceptions()
1318 snap_src->store->snap = snap_src; __handover_exceptions()
1321 snap_dest->valid = snap_src->valid; __handover_exceptions()
1322 snap_dest->snapshot_overflowed = snap_src->snapshot_overflowed; __handover_exceptions()
1327 snap_src->valid = 0; __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()
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()
1883 down_read(&snap_src->lock); snapshot_preresume()
1884 if (s == snap_src) { snapshot_preresume()
1888 } else if (!dm_suspended(snap_src->ti)) { snapshot_preresume()
1893 up_read(&snap_src->lock); 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()
1939 down_write(&snap_src->lock); snapshot_resume()
1941 __handover_exceptions(snap_src, snap_dest); snapshot_resume()
1943 up_write(&snap_src->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
/linux-4.4.14/fs/btrfs/
H A Dioctl.c821 struct btrfs_root *snap_src, btrfs_mksubvol()
861 if (snap_src) { btrfs_mksubvol()
862 error = create_snapshot(snap_src, dir, dentry, name, namelen, btrfs_mksubvol()
819 btrfs_mksubvol(struct path *parent, char *name, int namelen, struct btrfs_root *snap_src, u64 *async_transid, bool readonly, struct btrfs_qgroup_inherit *inherit) btrfs_mksubvol() argument

Completed in 495 milliseconds