Re: [PATCH v2 5/5] Expand implementation of mem-pool type

2018-03-23 Thread Junio C Hamano
Jameson Miller writes: > +void mem_pool_discard(struct mem_pool *mem_pool) > +{ > + struct mp_block *block, *block_to_free; > + for (block = mem_pool->mp_block; block;) > + { > + block_to_free = block; > + block = block->next_block; > +

[PATCH v2 5/5] Expand implementation of mem-pool type

2018-03-23 Thread Jameson Miller
This commit adds functionality to the mem-pool type that can be generally useful. This functionality will be used in a future commit. Signed-off-by: Jameson Miller --- mem-pool.c | 58 ++ mem-pool.h | 24