Lines Matching refs:bfc
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()
378 mutex_unlock(&bfc->bc_mutex); in init_new_file()
379 incfs_free_bfc(bfc); in init_new_file()
712 struct backing_file_context *bfc = NULL; in init_new_mapped_file() local
730 bfc = incfs_alloc_bfc(mi, new_file); in init_new_mapped_file()
732 if (IS_ERR(bfc)) { in init_new_mapped_file()
733 error = PTR_ERR(bfc); in init_new_mapped_file()
734 bfc = NULL; in init_new_mapped_file()
738 mutex_lock(&bfc->bc_mutex); in init_new_mapped_file()
739 error = incfs_write_mapping_fh_to_backing_file(bfc, uuid, size, offset); in init_new_mapped_file()
744 if (bfc) { in init_new_mapped_file()
745 mutex_unlock(&bfc->bc_mutex); in init_new_mapped_file()
746 incfs_free_bfc(bfc); in init_new_mapped_file()