Lines Matching refs:result
21 struct backing_file_context *result = NULL; in incfs_alloc_bfc() local
23 result = kzalloc(sizeof(*result), GFP_NOFS); in incfs_alloc_bfc()
24 if (!result) in incfs_alloc_bfc()
27 result->bc_file = get_file(backing_file); in incfs_alloc_bfc()
28 result->bc_cred = mi->mi_owner; in incfs_alloc_bfc()
29 mutex_init(&result->bc_mutex); in incfs_alloc_bfc()
30 return result; in incfs_alloc_bfc()
65 int result = 0; in truncate_backing_file() local
88 result = notify_change(&init_user_ns, dentry, &attr, NULL); in truncate_backing_file()
91 return result; in truncate_backing_file()
129 int result; in append_zeros() local
146 result = vfs_fallocate(bfc->bc_file, 0, new_last_byte_offset, 1); in append_zeros()
147 if (result != -EOPNOTSUPP) in append_zeros()
148 return result; in append_zeros()
160 int result = 0; in append_md_to_backing_file() local
181 result = write_to_bf(bfc, record, record_size, file_pos); in append_md_to_backing_file()
182 if (result) in append_md_to_backing_file()
183 return result; in append_md_to_backing_file()
201 result = write_to_bf(bfc, &new_md_offset, sizeof(new_md_offset), in append_md_to_backing_file()
203 if (result) in append_md_to_backing_file()
204 return result; in append_md_to_backing_file()
207 return result; in append_md_to_backing_file()
218 int result = 0; in incfs_write_blockmap_to_backing_file() local
234 result = append_zeros(bfc, map_size); in incfs_write_blockmap_to_backing_file()
235 if (result) in incfs_write_blockmap_to_backing_file()
236 return result; in incfs_write_blockmap_to_backing_file()
240 result = append_md_to_backing_file(bfc, &blockmap.m_header); in incfs_write_blockmap_to_backing_file()
241 if (result) in incfs_write_blockmap_to_backing_file()
245 return result; in incfs_write_blockmap_to_backing_file()
253 int result = 0; in incfs_write_signature_to_backing_file() local
272 result = write_to_bf(bfc, sig.data, sig.len, rollback_pos); in incfs_write_signature_to_backing_file()
273 if (result) in incfs_write_signature_to_backing_file()
294 result = append_zeros(bfc, tree_size + alignment); in incfs_write_signature_to_backing_file()
295 if (result) in incfs_write_signature_to_backing_file()
303 result = append_md_to_backing_file(bfc, &sg.sg_header); in incfs_write_signature_to_backing_file()
305 if (result) in incfs_write_signature_to_backing_file()
315 return result; in incfs_write_signature_to_backing_file()
322 int result; in write_new_status_to_backing_file() local
335 result = append_md_to_backing_file(bfc, &is.is_header); in write_new_status_to_backing_file()
336 if (result) in write_new_status_to_backing_file()
339 return result; in write_new_status_to_backing_file()
348 int result; in incfs_write_status_to_backing_file() local
357 result = incfs_kread(bfc, &is, sizeof(is), status_offset); in incfs_write_status_to_backing_file()
358 if (result != sizeof(is)) in incfs_write_status_to_backing_file()
363 result = incfs_kwrite(bfc, &is, sizeof(is), status_offset); in incfs_write_status_to_backing_file()
364 if (result != sizeof(is)) in incfs_write_status_to_backing_file()
375 int result; in incfs_write_verity_signature_to_backing_file() local
394 result = write_to_bf(bfc, signature.data, signature.len, pos); in incfs_write_verity_signature_to_backing_file()
395 if (result) in incfs_write_verity_signature_to_backing_file()
398 result = append_md_to_backing_file(bfc, &vs.vs_header); in incfs_write_verity_signature_to_backing_file()
399 if (result) in incfs_write_verity_signature_to_backing_file()
404 if (result) in incfs_write_verity_signature_to_backing_file()
407 return result; in incfs_write_verity_signature_to_backing_file()
481 int result = 0; in incfs_write_data_block_to_backing_file() local
501 result = write_to_bf(bfc, block.data, block.len, data_offset); in incfs_write_data_block_to_backing_file()
502 if (result) in incfs_write_data_block_to_backing_file()
503 return result; in incfs_write_data_block_to_backing_file()
523 int result; in incfs_write_hash_block_to_backing_file() local
543 result = write_to_bf(bfc, block.data, block.len, data_offset); in incfs_write_hash_block_to_backing_file()
544 if (result) in incfs_write_hash_block_to_backing_file()
545 return result; in incfs_write_hash_block_to_backing_file()
582 int result = 0; in incfs_read_blockmap_entries() local
590 result = incfs_kread(bfc, entries, bytes_to_read, bm_entry_off); in incfs_read_blockmap_entries()
591 if (result < 0) in incfs_read_blockmap_entries()
592 return result; in incfs_read_blockmap_entries()
593 return result / sizeof(*entries); in incfs_read_blockmap_entries()