Lines Matching refs:bfc
79 struct backing_file_context *bfc; in incfs_end_enable_verity() local
93 bfc = df->df_backing_file_context; in incfs_end_enable_verity()
94 error = mutex_lock_interruptible(&bfc->bc_mutex); in incfs_end_enable_verity()
98 error = incfs_write_verity_signature_to_backing_file(bfc, signature, in incfs_end_enable_verity()
100 mutex_unlock(&bfc->bc_mutex); in incfs_end_enable_verity()
107 error = vfs_setxattr(bfc->bc_file->f_path.dentry, in incfs_end_enable_verity()
297 struct backing_file_context *bfc, in incfs_build_merkle_tree() argument
331 result = incfs_kread(bfc, partial_buf.data, in incfs_build_merkle_tree()
357 result = incfs_kwrite(bfc, hash.data, hash.len, in incfs_build_merkle_tree()
422 struct backing_file_context *bfc; in incfs_add_signature_record() local
451 bfc = df->df_backing_file_context; in incfs_add_signature_record()
452 if (!bfc) { in incfs_add_signature_record()
457 error = mutex_lock_interruptible(&bfc->bc_mutex); in incfs_add_signature_record()
461 error = incfs_write_signature_to_backing_file(bfc, in incfs_add_signature_record()
465 mutex_unlock(&bfc->bc_mutex); in incfs_add_signature_record()
470 error = incfs_build_merkle_tree(f, df, bfc, hash_tree, hash_offset, alg, in incfs_add_signature_record()
477 result = incfs_kwrite(bfc, &sig, sizeof(sig), sig_offset); in incfs_add_signature_record()