Lines Matching refs:hash_tree
298 struct mtree *hash_tree, loff_t hash_offset, in incfs_build_merkle_tree() argument
319 for (lvl = 0; lvl <= hash_tree->depth; lvl++) { in incfs_build_merkle_tree()
329 hash_tree->hash_level_suboffset[lvl - 1]; in incfs_build_merkle_tree()
351 if (lvl == hash_tree->depth) in incfs_build_merkle_tree()
355 hash_tree->hash_level_suboffset[lvl]; in incfs_build_merkle_tree()
421 struct mtree *hash_tree = NULL; in incfs_add_signature_record() local
446 hash_tree = incfs_alloc_mtree(range((u8 *)&sig, sizeof(sig)), in incfs_add_signature_record()
448 if (IS_ERR(hash_tree)) in incfs_add_signature_record()
449 return PTR_ERR(hash_tree); in incfs_add_signature_record()
463 hash_tree->hash_tree_area_size, in incfs_add_signature_record()
470 error = incfs_build_merkle_tree(f, df, bfc, hash_tree, hash_offset, alg, in incfs_add_signature_record()
489 memcpy(hash_tree->root_hash, hash.data, alg->digest_size); in incfs_add_signature_record()
497 .hash_size = hash_tree->hash_tree_area_size, in incfs_add_signature_record()
508 smp_store_release(&df->df_hash_tree, hash_tree); in incfs_add_signature_record()
509 hash_tree = NULL; in incfs_add_signature_record()
513 kfree(hash_tree); in incfs_add_signature_record()