Home | History | Annotate | Download | only in fio

Lines Matching refs:alloc_size

180 static int add_pool(struct pool *pool, unsigned int alloc_size)
186 alloc_size += sizeof(unsigned int);
188 alloc_size += sizeof(struct block_hdr);
189 if (alloc_size < INITIAL_SIZE)
190 alloc_size = INITIAL_SIZE;
193 alloc_size = (alloc_size + SMALLOC_BPL - 1) & ~(SMALLOC_BPL - 1);
194 bitmap_blocks = alloc_size / SMALLOC_BPL;
195 alloc_size += bitmap_blocks * sizeof(unsigned int);
196 pool->mmap_size = alloc_size;
201 ptr = mmap(NULL, alloc_size, PROT_READ|PROT_WRITE,
206 memset(ptr, 0, alloc_size);
409 size_t alloc_size = size + sizeof(struct block_hdr);
417 alloc_size += sizeof(unsigned int);
418 alloc_size = (alloc_size + int_mask) & ~int_mask;
421 ptr = __smalloc_pool(pool, alloc_size);
425 hdr->size = alloc_size;