-static int blocks_iter(unsigned int *map, unsigned int idx,
- unsigned int nr_blocks,
+static inline unsigned int size_to_blocks(unsigned int size)
+{
+ return (size + SMALLOC_BPB - 1) / SMALLOC_BPB;
+}
+
+static int blocks_iter(struct pool *pool, unsigned int pool_idx,
+ unsigned int idx, unsigned int nr_blocks,