• Home
  • Raw
  • Download

Lines Matching refs:origin

52 	struct dm_dev *origin;  member
153 return s->origin; in dm_snap_origin()
291 struct origin { struct
364 static struct origin *__lookup_origin(struct block_device *origin) in __lookup_origin() argument
367 struct origin *o; in __lookup_origin()
369 ol = &_origins[origin_hash(origin)]; in __lookup_origin()
371 if (bdev_equal(o->bdev, origin)) in __lookup_origin()
377 static void __insert_origin(struct origin *o) in __insert_origin()
383 static struct dm_origin *__lookup_dm_origin(struct block_device *origin) in __lookup_dm_origin() argument
388 ol = &_dm_origins[origin_hash(origin)]; in __lookup_dm_origin()
390 if (bdev_equal(o->dev->bdev, origin)) in __lookup_dm_origin()
428 struct origin *o; in __find_snapshots_sharing_cow()
432 o = __lookup_origin(snap->origin->bdev); in __find_snapshots_sharing_cow()
508 static void __insert_snapshot(struct origin *o, struct dm_snapshot *s) in __insert_snapshot()
529 struct origin *o, *new_o = NULL; in register_snapshot()
530 struct block_device *bdev = snap->origin->bdev; in register_snapshot()
572 struct block_device *bdev = s->origin->bdev; in reregister_snapshot()
584 struct origin *o; in unregister_snapshot()
587 o = __lookup_origin(s->origin->bdev); in unregister_snapshot()
772 static uint32_t __minimum_chunk_size(struct origin *o) in __minimum_chunk_size()
1003 dest.bdev = s->origin->bdev; in snapshot_merge_next_chunks()
1134 r = dm_get_device(ti, origin_path, origin_mode, &s->origin); in snapshot_ctr()
1139 origin_dev = s->origin->bdev->bd_dev; in snapshot_ctr()
1278 dm_put_device(ti, s->origin); in snapshot_ctr()
1376 dm_put_device(ti, s->origin); in snapshot_dtr()
1396 static int do_origin(struct dm_dev *origin, struct bio *bio);
1409 r = do_origin(s->origin, bio); in retry_origin_bios()
1572 struct block_device *bdev = s->origin->bdev; in start_copy()
1772 bio->bi_bdev = s->origin->bdev; in snapshot_map()
1805 bio->bi_bdev = s->origin->bdev; in snapshot_merge_map()
1827 bio->bi_bdev = s->origin->bdev; in snapshot_merge_map()
1841 bio->bi_bdev = s->origin->bdev; in snapshot_merge_map()
1845 return do_origin(s->origin, bio); in snapshot_merge_map()
1907 o = __lookup_dm_origin(s->origin->bdev); in snapshot_resume()
1983 ti->max_io_len = get_origin_minimum_chunksize(s->origin->bdev); in snapshot_merge_resume()
2032 DMEMIT("%s %s", snap->origin->name, snap->cow->name); in snapshot_status()
2045 r = fn(ti, snap->origin, 0, ti->len, data); in snapshot_iterate_devices()
2181 static int do_origin(struct dm_dev *origin, struct bio *bio) in do_origin() argument
2183 struct origin *o; in do_origin()
2187 o = __lookup_origin(origin->bdev); in do_origin()
2213 struct origin *o; in origin_write_extent()
2220 o = __lookup_origin(merging_snap->origin->bdev); in origin_write_extent()