Lines Matching refs:device_metadata

346 	if (table->md->ima.active_table.device_metadata !=  in dm_ima_measure_on_table_load()
347 table->md->ima.inactive_table.device_metadata) in dm_ima_measure_on_table_load()
348 kfree(table->md->ima.inactive_table.device_metadata); in dm_ima_measure_on_table_load()
350 table->md->ima.inactive_table.device_metadata = device_data_buf; in dm_ima_measure_on_table_load()
397 if (md->ima.active_table.device_metadata != in dm_ima_measure_on_device_resume()
398 md->ima.inactive_table.device_metadata) in dm_ima_measure_on_device_resume()
399 kfree(md->ima.active_table.device_metadata); in dm_ima_measure_on_device_resume()
401 md->ima.active_table.device_metadata = NULL; in dm_ima_measure_on_device_resume()
412 if (md->ima.inactive_table.device_metadata) { in dm_ima_measure_on_device_resume()
413 md->ima.active_table.device_metadata = in dm_ima_measure_on_device_resume()
414 md->ima.inactive_table.device_metadata; in dm_ima_measure_on_device_resume()
418 md->ima.inactive_table.device_metadata = NULL; in dm_ima_measure_on_device_resume()
424 if (md->ima.active_table.device_metadata) { in dm_ima_measure_on_device_resume()
425 memcpy(device_table_data + l, md->ima.active_table.device_metadata, in dm_ima_measure_on_device_resume()
506 if (md->ima.active_table.device_metadata) { in dm_ima_measure_on_device_remove()
510 memcpy(device_table_data + l, md->ima.active_table.device_metadata, in dm_ima_measure_on_device_remove()
517 if (md->ima.inactive_table.device_metadata) { in dm_ima_measure_on_device_remove()
521 memcpy(device_table_data + l, md->ima.inactive_table.device_metadata, in dm_ima_measure_on_device_remove()
585 kfree(md->ima.active_table.device_metadata); in dm_ima_measure_on_device_remove()
587 if (md->ima.active_table.device_metadata != in dm_ima_measure_on_device_remove()
588 md->ima.inactive_table.device_metadata) in dm_ima_measure_on_device_remove()
589 kfree(md->ima.inactive_table.device_metadata); in dm_ima_measure_on_device_remove()
628 memcpy(device_table_data + l, md->ima.inactive_table.device_metadata, in dm_ima_measure_on_table_clear()
670 if (md->ima.inactive_table.device_metadata && in dm_ima_measure_on_table_clear()
671 md->ima.inactive_table.device_metadata != md->ima.active_table.device_metadata) in dm_ima_measure_on_table_clear()
672 kfree(md->ima.inactive_table.device_metadata); in dm_ima_measure_on_table_clear()
674 md->ima.inactive_table.device_metadata = NULL; in dm_ima_measure_on_table_clear()
683 if (md->ima.active_table.device_metadata) { in dm_ima_measure_on_table_clear()
684 md->ima.inactive_table.device_metadata = in dm_ima_measure_on_table_clear()
685 md->ima.active_table.device_metadata; in dm_ima_measure_on_table_clear()
726 old_device_data = md->ima.active_table.device_metadata; in dm_ima_measure_on_device_rename()
728 md->ima.active_table.device_metadata = new_device_data; in dm_ima_measure_on_device_rename()