Home
last modified time | relevance | path

Searched refs:VDO_ASSERT (Results 1 – 22 of 22) sorted by relevance

/linux/drivers/md/dm-vdo/
H A Dencodings.c323 result = VDO_ASSERT(header.size == offset + sizeof(u32), in vdo_parse_geometry_block()
383 result = VDO_ASSERT(flat_page_origin == VDO_BLOCK_MAP_FLAT_PAGE_ORIGIN, in decode_block_map_state_2_0()
391 result = VDO_ASSERT(flat_page_count == 0, in decode_block_map_state_2_0()
400 result = VDO_ASSERT(VDO_BLOCK_MAP_HEADER_2_0.size == *offset - initial_offset, in decode_block_map_state_2_0()
518 result = VDO_ASSERT(VDO_RECOVERY_JOURNAL_HEADER_7_0.size == *offset - initial_offset, in decode_recovery_journal_state_7_0()
632 result = VDO_ASSERT(VDO_SLAB_DEPOT_HEADER_2_0.size == *offset - initial_offset, in decode_slab_depot_state_2_0()
1036 result = VDO_ASSERT(sizeof(struct layout_3_0) == *offset - initial_offset, in decode_layout()
1212 result = VDO_ASSERT(config->slab_size > 0, "slab size unspecified"); in vdo_validate_config()
1216 result = VDO_ASSERT(is_power_of_2(config->slab_size), in vdo_validate_config()
1221 result = VDO_ASSERT(config->slab_size <= (1 << MAX_VDO_SLAB_BITS), in vdo_validate_config()
[all …]
H A Dpermassert.h31 #define VDO_ASSERT(expr, ...) vdo_must_use(__VDO_ASSERT(expr, __VA_ARGS__)) macro
H A Dvio.c85 result = VDO_ASSERT(block_count <= MAX_BLOCKS_PER_VIO, in allocate_vio_components()
91 result = VDO_ASSERT(((vio_type != VIO_TYPE_UNINITIALIZED) && (vio_type != VIO_TYPE_DATA)), in allocate_vio_components()
217 if (VDO_ASSERT(size <= vio_size, "specified size %d is not greater than allocated %d", in vio_reset_bio_with_size()
H A Dcompletion.c117 if (VDO_ASSERT(thread_id < vdo->thread_config.thread_count, in vdo_enqueue_completion()
H A Dblock-map.c293 result = VDO_ASSERT(state < ARRAY_SIZE(state_names), in get_page_state_name()
386 int result = VDO_ASSERT((pbn == NO_PAGE) || (info->pbn == NO_PAGE), in set_info_pbn()
409 result = VDO_ASSERT(info->busy == 0, "VDO Page must not be busy"); in reset_page_info()
413 result = VDO_ASSERT(!vdo_waitq_has_waiters(&info->waiting), in reset_page_info()
608 result = VDO_ASSERT(completion->ready, "VDO Page completion not ready"); in validate_completed_page()
612 result = VDO_ASSERT(completion->info != NULL, in validate_completed_page()
617 result = VDO_ASSERT(completion->info->pbn == completion->pbn, in validate_completed_page()
622 result = VDO_ASSERT(is_valid(completion->info), in validate_completed_page()
628 result = VDO_ASSERT(completion->writable, in validate_completed_page()
794 result = VDO_ASSERT((info->busy == 0), "Page is not busy before loading."); in launch_page_load()
[all …]
H A Dcompletion.h88 return VDO_ASSERT(expected == completion->type, in vdo_assert_completion_type()
H A Dphysical-zone.c302 result = VDO_ASSERT(!list_empty(&pool->idle_list), in borrow_pbn_lock_from_pool()
465 result = VDO_ASSERT(lock->holder_count > 0, "physical block %llu lock held", in vdo_attempt_physical_zone_pbn_lock()
H A Dfunnel-workqueue.c119 if (VDO_ASSERT(completion->priority <= queue->common.type->max_priority, in enqueue_work_queue_completion()
225 if (VDO_ASSERT(completion->my_queue == &queue->common, in process_completion()
H A Derrors.c284 result = VDO_ASSERT(first_error < next_free_error, in uds_register_error_block()
H A Dvdo.c421 return VDO_ASSERT(vdo_work_queue_type_is(thread->queue, type), in vdo_make_thread()
444 result = VDO_ASSERT(filter_vdos_locked(vdo_is_equal, vdo) == NULL, in register_vdo()
995 result = VDO_ASSERT(thread_id != vdo->thread_config.dedupe_thread, in vdo_register_read_only_listener()
1718 result = VDO_ASSERT(slab != NULL, "vdo_get_slab must succeed on all valid PBNs"); in vdo_get_physical_zone()
H A Dflush.c275 result = VDO_ASSERT(vdo_is_state_normal(&flusher->state), in flush_vdo()
H A Ddedupe.c875 result = VDO_ASSERT(!list_empty(&zone->lock_pool), in acquire_lock()
1814 result = VDO_ASSERT(data_vio->hash_lock == NULL, in assert_hash_lock_preconditions()
1819 result = VDO_ASSERT(list_empty(&data_vio->hash_lock_entry), in assert_hash_lock_preconditions()
1824 return VDO_ASSERT(data_vio->recovery_sequence_number == 0, in assert_hash_lock_preconditions()
H A Dpacker.c572 result = VDO_ASSERT((status.stage == DATA_VIO_COMPRESSING), in vdo_attempt_packing()
H A Dslab-depot.c910 result = VDO_ASSERT(vdo_before_journal_point(&journal->tail_header.recovery_point, in add_entry()
923 result = VDO_ASSERT((journal->tail_header.entry_count < in add_entry()
1660 result = VDO_ASSERT(is_valid_journal_point(slab_journal_point), in adjust_reference_count()
2450 result = VDO_ASSERT(slab->reference_blocks == NULL, in allocate_slab_counters()
2644 result = VDO_ASSERT((free_blocks <= allocator->depot->slab_config.data_blocks), in queue_slab()
2968 result = VDO_ASSERT(!vdo_before_journal_point(&last_entry_applied, in apply_journal_entries()
H A Ddata-vio.c450 result = VDO_ASSERT(lock_holder->logical.locked, "logical block lock held"); in attempt_logical_block_lock()
1994 int result = VDO_ASSERT(data_vio->is_discard, in assert_is_discard()
H A Drepair.c1492 result = VDO_ASSERT((repair->block_map_entry_count <= repair->entry_count), in extract_new_mappings()
H A Ddm-vdo-target.c1579 result = VDO_ASSERT(instance < instances.bit_count, in allocate_instance()
/linux/drivers/md/dm-vdo/indexer/
H A Ddelta-index.c859 result = VDO_ASSERT(offset == sizeof(struct delta_index_header), in uds_start_restoring_delta_index()
1139 result = VDO_ASSERT(offset == sizeof(struct delta_index_header), in uds_start_saving_delta_index()
1215 int result = VDO_ASSERT(!delta_entry->at_end, in assert_not_at_end()
1239 result = VDO_ASSERT((list_number < delta_index->list_count), in uds_start_delta_index_search()
1248 result = VDO_ASSERT((list_number < delta_zone->list_count), in uds_start_delta_index_search()
1365 result = VDO_ASSERT((delta_entry->offset == size), in uds_next_delta_index_entry()
1393 result = VDO_ASSERT(!delta_entry->is_collision, "entry is not a collision"); in uds_remember_delta_index_offset()
1492 result = VDO_ASSERT(delta_entry->is_collision, in uds_get_delta_entry_collision()
1509 int result = VDO_ASSERT((delta_entry->delta_list != &delta_entry->temp_delta_list), in assert_mutable_entry()
1530 result = VDO_ASSERT((value & value_mask) == value, in uds_set_delta_entry_value()
[all …]
H A Dchapter-index.c86 result = VDO_ASSERT(page_number < record_pages, in uds_put_open_chapter_index_record()
100 result = VDO_ASSERT(!(found && entry.is_collision), in uds_put_open_chapter_index_record()
H A Dconfig.c137 result = VDO_ASSERT(offset == sizeof(struct uds_configuration_6_02), in uds_validate_config_contents()
213 result = VDO_ASSERT(offset == sizeof(struct uds_configuration_6_02), in uds_write_config_contents()
H A Dvolume.c262 result = VDO_ASSERT((page->read_pending), "page to install has a pending read"); in put_page_in_cache()
288 result = VDO_ASSERT((page->read_pending), "page to install has a pending read"); in cancel_page_in_cache()
894 result = VDO_ASSERT(record_page_number < geometry->record_pages_per_chapter, in uds_search_cached_record_page()
1506 result = VDO_ASSERT((cache->cache_slots <= VOLUME_CACHE_MAX_ENTRIES), in initialize_page_cache()
H A Dindex-session.c198 request->status = VDO_ASSERT(false, "unknown request type: %d", in update_session_stats()