Lines Matching refs:result

159 	int result;  in release_pbn_lock_provisional_reference()  local
164 result = vdo_release_block_reference(allocator, locked_pbn); in release_pbn_lock_provisional_reference()
165 if (result != VDO_SUCCESS) { in release_pbn_lock_provisional_reference()
166 vdo_log_error_strerror(result, in release_pbn_lock_provisional_reference()
240 int result; in make_pbn_lock_pool() local
242 result = vdo_allocate_extended(struct pbn_lock_pool, capacity, idle_pbn_lock, in make_pbn_lock_pool()
244 if (result != VDO_SUCCESS) in make_pbn_lock_pool()
245 return result; in make_pbn_lock_pool()
292 int result; in borrow_pbn_lock_from_pool() local
301 result = VDO_ASSERT(!list_empty(&pool->idle_list), in borrow_pbn_lock_from_pool()
303 if (result != VDO_SUCCESS) in borrow_pbn_lock_from_pool()
304 return result; in borrow_pbn_lock_from_pool()
327 int result; in initialize_zone() local
331 result = vdo_int_map_create(VDO_LOCK_MAP_CAPACITY, &zone->pbn_operations); in initialize_zone()
332 if (result != VDO_SUCCESS) in initialize_zone()
333 return result; in initialize_zone()
335 result = make_pbn_lock_pool(LOCK_POOL_CAPACITY, &zone->lock_pool); in initialize_zone()
336 if (result != VDO_SUCCESS) { in initialize_zone()
338 return result; in initialize_zone()
345 result = vdo_make_default_thread(vdo, zone->thread_id); in initialize_zone()
346 if (result != VDO_SUCCESS) { in initialize_zone()
349 return result; in initialize_zone()
351 return result; in initialize_zone()
364 int result; in vdo_make_physical_zones() local
370 result = vdo_allocate_extended(struct physical_zones, zone_count, in vdo_make_physical_zones()
372 if (result != VDO_SUCCESS) in vdo_make_physical_zones()
373 return result; in vdo_make_physical_zones()
376 result = initialize_zone(vdo, zones); in vdo_make_physical_zones()
377 if (result != VDO_SUCCESS) { in vdo_make_physical_zones()
379 return result; in vdo_make_physical_zones()
446 int result; in vdo_attempt_physical_zone_pbn_lock() local
448 result = borrow_pbn_lock_from_pool(zone->lock_pool, type, &new_lock); in vdo_attempt_physical_zone_pbn_lock()
449 if (result != VDO_SUCCESS) { in vdo_attempt_physical_zone_pbn_lock()
451 return result; in vdo_attempt_physical_zone_pbn_lock()
454 result = vdo_int_map_put(zone->pbn_operations, pbn, new_lock, false, in vdo_attempt_physical_zone_pbn_lock()
456 if (result != VDO_SUCCESS) { in vdo_attempt_physical_zone_pbn_lock()
458 return result; in vdo_attempt_physical_zone_pbn_lock()
464 result = VDO_ASSERT(lock->holder_count > 0, "physical block %llu lock held", in vdo_attempt_physical_zone_pbn_lock()
466 if (result != VDO_SUCCESS) in vdo_attempt_physical_zone_pbn_lock()
467 return result; in vdo_attempt_physical_zone_pbn_lock()
485 int result; in allocate_and_lock_block() local
491 result = vdo_allocate_block(allocation->zone->allocator, &allocation->pbn); in allocate_and_lock_block()
492 if (result != VDO_SUCCESS) in allocate_and_lock_block()
493 return result; in allocate_and_lock_block()
495 result = vdo_attempt_physical_zone_pbn_lock(allocation->zone, allocation->pbn, in allocate_and_lock_block()
497 if (result != VDO_SUCCESS) in allocate_and_lock_block()
498 return result; in allocate_and_lock_block()
544 int result = VDO_SUCCESS; in continue_allocating() local
561 result = vdo_enqueue_clean_slab_waiter(zone->allocator, in continue_allocating()
563 if (result == VDO_SUCCESS) { in continue_allocating()
568 if ((result != VDO_NO_SPACE) || (was_waiting && tried_all)) { in continue_allocating()
569 vdo_set_completion_result(completion, result); in continue_allocating()
590 int result = allocate_and_lock_block(&data_vio->allocation); in vdo_allocate_block_in_zone() local
592 if (result == VDO_SUCCESS) in vdo_allocate_block_in_zone()
595 if ((result != VDO_NO_SPACE) || !continue_allocating(data_vio)) in vdo_allocate_block_in_zone()
596 continue_data_vio_with_error(data_vio, result); in vdo_allocate_block_in_zone()