COUNTS_PER_BLOCK
return DIV_ROUND_UP(block_count, COUNTS_PER_BLOCK);
return &block->slab->counters[block_index * COUNTS_PER_BLOCK];
return &slab->reference_blocks[index / COUNTS_PER_BLOCK];
cursor->end_index = min_t(u32, COUNTS_PER_BLOCK, slab->block_count);
cursor->end_index += COUNTS_PER_BLOCK;
sector_count_t sector = (entry.sbn % COUNTS_PER_BLOCK) / COUNTS_PER_SECTOR;
return ((slab->search_cursor.block->allocated_count < COUNTS_PER_BLOCK) &&
unsigned int words_left = COUNTS_PER_BLOCK / sizeof(u64);
BUILD_BUG_ON((COUNTS_PER_BLOCK % sizeof(u64)) != 0);
return COUNTS_PER_BLOCK - empty_count;
bytes = (slab->reference_block_count * COUNTS_PER_BLOCK) + (2 * BYTES_PER_WORD);