Home | History | Annotate | Download | only in fio

Lines Matching defs:alloc_size

155 static bool add_pool(struct pool *pool, unsigned int alloc_size)
165 alloc_size += sizeof(unsigned int);
167 alloc_size += sizeof(struct block_hdr);
168 if (alloc_size < INITIAL_SIZE)
169 alloc_size = INITIAL_SIZE;
172 alloc_size = (alloc_size + SMALLOC_BPL - 1) & ~(SMALLOC_BPL - 1);
173 bitmap_blocks = alloc_size / SMALLOC_BPL;
174 alloc_size += bitmap_blocks * sizeof(unsigned int);
175 pool->mmap_size = alloc_size;
186 ptr = mmap(NULL, alloc_size, PROT_READ|PROT_WRITE, mmap_flags, -1, 0);
400 size_t alloc_size = size + sizeof(struct block_hdr);
408 alloc_size += sizeof(unsigned int);
409 alloc_size = (alloc_size + int_mask) & ~int_mask;
412 ptr = __smalloc_pool(pool, alloc_size);
416 hdr->size = alloc_size;