Lines Matching refs:template_disk
1037 struct gendisk *prev_disk = NULL, *template_disk = NULL; in dm_table_get_integrity_disk() local
1040 template_disk = dd->dm_dev->bdev->bd_disk; in dm_table_get_integrity_disk()
1041 if (!blk_get_integrity(template_disk)) in dm_table_get_integrity_disk()
1043 if (!match_all && !blk_integrity_is_initialized(template_disk)) in dm_table_get_integrity_disk()
1046 blk_integrity_compare(prev_disk, template_disk) < 0) in dm_table_get_integrity_disk()
1048 prev_disk = template_disk; in dm_table_get_integrity_disk()
1051 return template_disk; in dm_table_get_integrity_disk()
1058 template_disk->disk_name); in dm_table_get_integrity_disk()
1074 struct gendisk *template_disk = NULL; in dm_table_prealloc_integrity() local
1076 template_disk = dm_table_get_integrity_disk(t, false); in dm_table_prealloc_integrity()
1077 if (!template_disk) in dm_table_prealloc_integrity()
1089 if (blk_integrity_is_initialized(template_disk) && in dm_table_prealloc_integrity()
1090 blk_integrity_compare(dm_disk(md), template_disk) < 0) { in dm_table_prealloc_integrity()
1094 template_disk->disk_name); in dm_table_prealloc_integrity()
1297 struct gendisk *template_disk = NULL; in dm_table_set_integrity() local
1302 template_disk = dm_table_get_integrity_disk(t, true); in dm_table_set_integrity()
1303 if (template_disk) in dm_table_set_integrity()
1305 blk_get_integrity(template_disk)); in dm_table_set_integrity()