Lines Matching refs:counters

1120  * get_reference_counters_for_block() - Find the reference counters for a given block.
1123 * Return: A pointer to the reference counters for this block.
1129 return &block->slab->counters[block_index * COUNTS_PER_BLOCK];
1140 vdo_refcount_t *counters = get_reference_counters_for_block(block);
1148 memcpy(packed->sectors[i].counts, counters + (i * COUNTS_PER_SECTOR),
1181 * its counters and associated data into the VIO, and launch the write.
1328 *counter_ptr = &slab->counters[index];
1598 vdo_refcount_t *counter_ptr = &slab->counters[block_number];
2008 * reference counters.
2040 * @slab: The slab counters to scan.
2052 u8 *next_counter = &slab->counters[next_index];
2053 u8 *end_counter = &slab->counters[end_index];
2151 slab->counters[block_number] = PROVISIONAL_REFERENCE_COUNT;
2175 vdo_refcount_t *counters = get_reference_counters_for_block(block);
2179 if (counters[j] == PROVISIONAL_REFERENCE_COUNT) {
2180 counters[j] = EMPTY_REFERENCE_COUNT;
2204 vdo_refcount_t *counters = get_reference_counters_for_block(block);
2210 memcpy(counters + (i * COUNTS_PER_SECTOR), sector->counts,
2229 if (counters[index] != EMPTY_REFERENCE_COUNT)
2320 if ((state == VDO_ADMIN_STATE_RECOVERING) || (slab->counters == NULL))
2338 * Write out the counters if the slab has written them before, or it has any
2381 &slab->counters);
2880 * At the end of rebuild, the reference counters should be accurate to the end of the
3122 if (slab->counters[block_number] == EMPTY_REFERENCE_COUNT) {
3145 VDO_ASSERT_LOG_ONLY((slab->counters[free_index] == EMPTY_REFERENCE_COUNT),
3615 if (slab->counters != NULL) {
3625 vdo_log_info(" no counters");
3653 vdo_free(vdo_forget(slab->counters));
4282 * vdo_allocate_reference_counters() - Allocate the reference counters for all slabs in the depot.