PCPU_MIN_ALLOC_SIZE
return pages * PAGE_SIZE / PCPU_MIN_ALLOC_SIZE;
extra_size += size / PCPU_MIN_ALLOC_SIZE * sizeof(struct obj_cgroup *);
P("contig_bytes", chunk_md->contig_hint * PCPU_MIN_ALLOC_SIZE);
chunk->end_offset / PCPU_MIN_ALLOC_SIZE - 1);
start = chunk->start_offset / PCPU_MIN_ALLOC_SIZE;
alloc_sizes[as_len++] *= (end - start) * PCPU_MIN_ALLOC_SIZE;
start = PFN_DOWN(bit_off * PCPU_MIN_ALLOC_SIZE);
end = PFN_UP((bit_off + bits) * PCPU_MIN_ALLOC_SIZE);
*next_off = end * PAGE_SIZE / PCPU_MIN_ALLOC_SIZE;
chunk->free_bytes -= alloc_bits * PCPU_MIN_ALLOC_SIZE;
return bit_off * PCPU_MIN_ALLOC_SIZE;
bit_off = off / PCPU_MIN_ALLOC_SIZE;
freed = bits * PCPU_MIN_ALLOC_SIZE;
offset_bits = chunk->start_offset / PCPU_MIN_ALLOC_SIZE;
offset_bits = chunk->end_offset / PCPU_MIN_ALLOC_SIZE;
set_bit((start_offset + map_size) / PCPU_MIN_ALLOC_SIZE,
if (unlikely(align < PCPU_MIN_ALLOC_SIZE))
align = PCPU_MIN_ALLOC_SIZE;
size = ALIGN(size, PCPU_MIN_ALLOC_SIZE);
if (chunk->free_bytes < PCPU_MIN_ALLOC_SIZE ||
return pcpu_size_to_slot(chunk_md->contig_hint * PCPU_MIN_ALLOC_SIZE);
PCPU_SETUP_BUG_ON(!IS_ALIGNED(ai->reserved_size, PCPU_MIN_ALLOC_SIZE));
static_size = ALIGN(ai->static_size, PCPU_MIN_ALLOC_SIZE);