Lines Matching refs:result

202 	int result;
216 result = vdo_allocate(config->logical_zone_count, thread_id_t,
218 if (result != VDO_SUCCESS) {
220 return result;
223 result = vdo_allocate(config->physical_zone_count, thread_id_t,
225 if (result != VDO_SUCCESS) {
227 return result;
230 result = vdo_allocate(config->hash_zone_count, thread_id_t,
232 if (result != VDO_SUCCESS) {
234 return result;
237 result = vdo_allocate(config->bio_thread_count, thread_id_t,
239 if (result != VDO_SUCCESS) {
241 return result;
276 int result;
278 result = vdo_allocate(VDO_BLOCK_SIZE, u8, __func__, &block);
279 if (result != VDO_SUCCESS)
280 return result;
282 result = create_metadata_vio(vdo, VIO_TYPE_GEOMETRY, VIO_PRIORITY_HIGH, NULL,
284 if (result != VDO_SUCCESS) {
286 return result;
294 result = vio_reset_bio(vio, block, NULL, REQ_OP_READ,
296 if (result != VDO_SUCCESS) {
299 return result;
304 result = blk_status_to_errno(vio->bio->bi_status);
306 if (result != 0) {
307 vdo_log_error_strerror(result, "synchronous read failed");
312 result = vdo_parse_geometry_block((u8 *) block, &vdo->geometry);
314 return result;
447 int result;
450 result = VDO_ASSERT(filter_vdos_locked(vdo_is_equal, vdo) == NULL,
452 if (result == VDO_SUCCESS) {
458 return result;
472 int result;
484 result = read_geometry_block(vdo);
485 if (result != VDO_SUCCESS) {
487 return result;
490 result = initialize_thread_config(config->thread_counts, &vdo->thread_config);
491 if (result != VDO_SUCCESS) {
493 return result;
502 result = vdo_allocate(config->thread_counts.cpu_threads, char *, "LZ4 context",
504 if (result != VDO_SUCCESS) {
506 return result;
510 result = vdo_allocate(LZ4_MEM_COMPRESS, char, "LZ4 context",
512 if (result != VDO_SUCCESS) {
514 return result;
518 result = register_vdo(vdo);
519 if (result != VDO_SUCCESS) {
521 return result;
525 return result;
540 int result;
546 result = vdo_allocate(1, struct vdo, __func__, &vdo);
547 if (result != VDO_SUCCESS) {
549 return result;
552 result = initialize_vdo(vdo, config, instance, reason);
553 if (result != VDO_SUCCESS) {
555 return result;
564 result = vdo_allocate(vdo->thread_config.thread_count,
566 if (result != VDO_SUCCESS) {
568 return result;
571 result = vdo_make_thread(vdo, vdo->thread_config.admin_thread,
573 if (result != VDO_SUCCESS) {
575 return result;
578 result = vdo_make_flusher(vdo);
579 if (result != VDO_SUCCESS) {
581 return result;
584 result = vdo_make_packer(vdo, DEFAULT_PACKER_BINS, &vdo->packer);
585 if (result != VDO_SUCCESS) {
587 return result;
592 result = make_data_vio_pool(vdo, MAXIMUM_VDO_USER_VIOS,
595 if (result != VDO_SUCCESS) {
597 return result;
600 result = vdo_make_io_submitter(config->thread_counts.bio_threads,
604 if (result != VDO_SUCCESS) {
606 return result;
610 result = vdo_make_thread(vdo, vdo->thread_config.bio_ack_thread,
613 if (result != VDO_SUCCESS) {
615 return result;
619 result = vdo_make_thread(vdo, vdo->thread_config.cpu_thread, &cpu_q_type,
622 if (result != VDO_SUCCESS) {
624 return result;
732 int result;
734 result = vdo_allocate(VDO_BLOCK_SIZE, char, "encoded super block",
736 if (result != VDO_SUCCESS)
737 return result;
788 int result;
790 result = initialize_super_block(vdo, &vdo->super_block);
791 if (result != VDO_SUCCESS) {
792 vdo_continue_completion(parent, result);
834 int result;
840 result = blk_status_to_errno(bio.bi_status);
843 if (result != 0) {
844 vdo_log_error_strerror(result, "synchronous flush failed");
845 result = -EIO;
849 return result;
916 vdo_continue_completion(vdo_forget(completion->parent), completion->result);
931 vdo_log_error_strerror(completion->result, "super block save failed");
999 int result;
1001 result = VDO_ASSERT(thread_id != vdo->thread_config.dedupe_thread,
1003 if (result != VDO_SUCCESS)
1004 return result;
1006 result = vdo_allocate(1, struct read_only_listener, __func__,
1008 if (result != VDO_SUCCESS)
1009 return result;
1136 completion->result);
1364 return sync.vdo_completion.result;
1708 int result;
1724 result = VDO_ASSERT(slab != NULL, "vdo_get_slab must succeed on all valid PBNs");
1725 if (result != VDO_SUCCESS)
1726 return result;