Lines Matching refs:result
189 char *result = kmalloc(1 + sizeof(id.bytes) * 2, GFP_NOFS); in file_id_to_str() local
192 if (!result) in file_id_to_str()
195 end = bin2hex(result, id.bytes, sizeof(id.bytes)); in file_id_to_str()
197 return result; in file_id_to_str()
203 struct dentry *result = NULL; in incfs_lookup_dentry() local
210 result = lookup_one_len(name, parent, strlen(name)); in incfs_lookup_dentry()
213 if (IS_ERR(result)) in incfs_lookup_dentry()
214 pr_warn("%s err:%ld\n", __func__, PTR_ERR(result)); in incfs_lookup_dentry()
216 return result; in incfs_lookup_dentry()
226 struct data_file *result = NULL; in handle_mapped_file() local
241 result = ERR_PTR(-ENOENT); in handle_mapped_file()
256 result = ERR_CAST(bf); in handle_mapped_file()
260 result = incfs_open_data_file(mi, bf); in handle_mapped_file()
262 if (IS_ERR(result)) in handle_mapped_file()
265 result->df_mapped_offset = df->df_metadata_off; in handle_mapped_file()
269 return result; in handle_mapped_file()
426 ssize_t result; in zstd_decompress_safe() local
430 result = mutex_lock_interruptible(&mi->mi_zstd_workspace_mutex); in zstd_decompress_safe()
431 if (result) in zstd_decompress_safe()
432 return result; in zstd_decompress_safe()
441 result = -ENOMEM; in zstd_decompress_safe()
449 result = -EIO; in zstd_decompress_safe()
457 result = zstd_decompress_stream(mi->mi_zstd_stream, &outbuf, &inbuf) ? in zstd_decompress_safe()
465 return result; in zstd_decompress_safe()
471 int result; in decompress() local
475 result = LZ4_decompress_safe(src.data, dst.data, src.len, in decompress()
477 if (result < 0) in decompress()
479 return result; in decompress()
1023 struct pending_read *result = NULL; in add_pending_read() local
1030 result = kzalloc(sizeof(*result), GFP_NOFS); in add_pending_read()
1031 if (!result) in add_pending_read()
1034 result->file_id = df->df_id; in add_pending_read()
1035 result->block_index = block_index; in add_pending_read()
1036 result->timestamp_us = ktime_to_us(ktime_get()); in add_pending_read()
1037 result->uid = current_uid().val; in add_pending_read()
1041 result->serial_number = ++mi->mi_last_pending_read_number; in add_pending_read()
1044 list_add_rcu(&result->mi_reads_list, &mi->mi_reads_list_head); in add_pending_read()
1045 list_add_rcu(&result->segment_reads_list, &segment->reads_list_head); in add_pending_read()
1050 return result; in add_pending_read()
1242 static int incfs_update_sysfs_error(struct file *file, int index, int result, in incfs_update_sysfs_error() argument
1247 if (result >= 0) in incfs_update_sysfs_error()
1257 mi->mi_le_errno = result; in incfs_update_sysfs_error()
1270 ssize_t result; in incfs_read_data_file_block() local
1286 result = wait_for_data_block(df, index, &block, timeouts, in incfs_read_data_file_block()
1288 if (result < 0) in incfs_read_data_file_block()
1294 result = incfs_kread(bfc, dst.data, bytes_to_read, pos); in incfs_read_data_file_block()
1297 if (result >= 0 && result != bytes_to_read) in incfs_read_data_file_block()
1298 result = -EIO; in incfs_read_data_file_block()
1301 result = incfs_kread(bfc, tmp.data, bytes_to_read, pos); in incfs_read_data_file_block()
1302 if (result == bytes_to_read) { in incfs_read_data_file_block()
1303 result = in incfs_read_data_file_block()
1306 if (result < 0) { in incfs_read_data_file_block()
1313 } else if (result >= 0) { in incfs_read_data_file_block()
1315 result = -EIO; in incfs_read_data_file_block()
1319 if (result > 0) { in incfs_read_data_file_block()
1323 result = err; in incfs_read_data_file_block()
1326 if (result >= 0) in incfs_read_data_file_block()
1330 if (result == -ETIME) in incfs_read_data_file_block()
1332 else if (result == -EBADMSG) in incfs_read_data_file_block()
1334 else if (result < 0) in incfs_read_data_file_block()
1337 incfs_update_sysfs_error(f, index, result, mi, df); in incfs_read_data_file_block()
1339 return result; in incfs_read_data_file_block()
1665 int result = 0; in incfs_scan_metadata_chain() local
1700 result = error; in incfs_scan_metadata_chain()
1702 result = records_count; in incfs_scan_metadata_chain()
1719 result = -EINVAL; in incfs_scan_metadata_chain()
1721 result = -EINVAL; in incfs_scan_metadata_chain()
1725 return result; in incfs_scan_metadata_chain()
1734 bool result = false; in incfs_fresh_pending_reads_exist() local
1737 result = (mi->mi_last_pending_read_number > last_number) && in incfs_fresh_pending_reads_exist()
1740 return result; in incfs_fresh_pending_reads_exist()
1801 struct read_log_state result; in incfs_get_log_state() local
1804 result = log->rl_head; in incfs_get_log_state()
1806 return result; in incfs_get_log_state()