Lines Matching refs:dm_cache_migration
418 struct dm_cache_migration { struct
474 static struct dm_cache_migration *alloc_migration(struct cache *cache) in alloc_migration()
476 struct dm_cache_migration *mg; in alloc_migration()
488 static void free_migration(struct dm_cache_migration *mg) in free_migration()
1067 static void quiesce(struct dm_cache_migration *mg, in quiesce()
1074 static struct dm_cache_migration *ws_to_mg(struct work_struct *ws) in ws_to_mg()
1077 return container_of(k, struct dm_cache_migration, k); in ws_to_mg()
1082 struct dm_cache_migration *mg = container_of(context, struct dm_cache_migration, k); in copy_complete()
1090 static void copy(struct dm_cache_migration *mg, bool promote) in copy()
1120 struct dm_cache_migration *mg = bio->bi_private; in overwrite_endio()
1132 static void overwrite(struct dm_cache_migration *mg, in overwrite()
1164 static void mg_complete(struct dm_cache_migration *mg, bool success) in mg_complete()
1227 struct dm_cache_migration *mg = ws_to_mg(ws); in mg_success()
1234 struct dm_cache_migration *mg = ws_to_mg(ws); in mg_update_metadata()
1295 struct dm_cache_migration *mg = ws_to_mg(ws); in mg_update_metadata_after_copy()
1309 struct dm_cache_migration *mg = ws_to_mg(ws); in mg_upgrade_lock()
1336 struct dm_cache_migration *mg = ws_to_mg(ws); in mg_full_copy()
1353 struct dm_cache_migration *mg = ws_to_mg(ws); in mg_copy()
1386 static int mg_lock_writes(struct dm_cache_migration *mg) in mg_lock_writes()
1423 struct dm_cache_migration *mg; in mg_start()
1445 static void invalidate_complete(struct dm_cache_migration *mg, bool success) in invalidate_complete()
1465 struct dm_cache_migration *mg = ws_to_mg(ws); in invalidate_completed()
1495 struct dm_cache_migration *mg = ws_to_mg(ws); in invalidate_remove()
1511 static int invalidate_lock(struct dm_cache_migration *mg) in invalidate_lock()
1550 struct dm_cache_migration *mg; in invalidate_start()
3440 migration_cache = KMEM_CACHE(dm_cache_migration, 0); in dm_cache_init()