Searched refs:bfc (Results 1 – 6 of 6) sorted by relevance
/fs/incfs/ |
D | format.c | 33 void incfs_free_bfc(struct backing_file_context *bfc) in incfs_free_bfc() argument 35 if (!bfc) in incfs_free_bfc() 38 if (bfc->bc_file) in incfs_free_bfc() 39 fput(bfc->bc_file); in incfs_free_bfc() 41 mutex_destroy(&bfc->bc_mutex); in incfs_free_bfc() 42 kfree(bfc); in incfs_free_bfc() 58 static int truncate_backing_file(struct backing_file_context *bfc, in truncate_backing_file() argument 67 if (!bfc) in truncate_backing_file() 70 LOCK_REQUIRED(bfc->bc_mutex); in truncate_backing_file() 72 if (!bfc->bc_file) in truncate_backing_file() [all …]
|
D | format.h | 349 void incfs_free_bfc(struct backing_file_context *bfc); 352 int incfs_write_blockmap_to_backing_file(struct backing_file_context *bfc, 355 int incfs_write_fh_to_backing_file(struct backing_file_context *bfc, 358 int incfs_write_mapping_fh_to_backing_file(struct backing_file_context *bfc, 361 int incfs_write_data_block_to_backing_file(struct backing_file_context *bfc, 366 int incfs_write_hash_block_to_backing_file(struct backing_file_context *bfc, 373 int incfs_write_signature_to_backing_file(struct backing_file_context *bfc, 377 int incfs_write_status_to_backing_file(struct backing_file_context *bfc, 382 struct backing_file_context *bfc, struct mem_range signature, 386 int incfs_read_file_header(struct backing_file_context *bfc, [all …]
|
D | data_mgmt.c | 275 struct backing_file_context *bfc = NULL; in incfs_open_data_file() local 287 bfc = incfs_alloc_bfc(mi, bf); in incfs_open_data_file() 288 if (IS_ERR(bfc)) in incfs_open_data_file() 289 return ERR_CAST(bfc); in incfs_open_data_file() 299 df->df_backing_file_context = bfc; in incfs_open_data_file() 304 error = incfs_read_file_header(bfc, &df->df_metadata_off, &df->df_id, in incfs_open_data_file() 327 incfs_free_bfc(bfc); in incfs_open_data_file() 348 struct backing_file_context *bfc = df->df_backing_file_context; in incfs_free_data_file() local 351 if (bfc && !mutex_lock_interruptible(&bfc->bc_mutex)) { in incfs_free_data_file() 357 mutex_unlock(&bfc->bc_mutex); in incfs_free_data_file() [all …]
|
D | verity.c | 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 [all …]
|
D | pseudo_files.c | 306 struct backing_file_context *bfc = NULL; in init_new_file() local 328 bfc = incfs_alloc_bfc(mi, new_file); in init_new_file() 330 if (IS_ERR(bfc)) { in init_new_file() 331 error = PTR_ERR(bfc); in init_new_file() 332 bfc = NULL; in init_new_file() 336 mutex_lock(&bfc->bc_mutex); in init_new_file() 337 error = incfs_write_fh_to_backing_file(bfc, uuid, size); in init_new_file() 360 error = incfs_write_signature_to_backing_file(bfc, in init_new_file() 371 error = incfs_write_blockmap_to_backing_file(bfc, block_count); in init_new_file() 377 if (bfc) { in init_new_file() [all …]
|
D | vfs.c | 689 struct backing_file_context *bfc; in handle_file_completed() local 697 bfc = df->df_backing_file_context; in handle_file_completed() 698 if (bfc) { in handle_file_completed() 699 struct file *f = bfc->bc_file; in handle_file_completed()
|