/* statistical data */
unsigned long e_created; /* extents created */
unsigned long e_freed; /* extents detroyed */
- uint64 n_allocated; /* calls to alloc */
- uint64 n_freed; /* calls to free */
- uint64 b_allocated; /* cum. bytes allocated */
- uint64 b_freed; /* cum. bytes freed */
+ int64 n_allocated; /* calls to alloc */
+ int64 n_freed; /* calls to free */
+ int64 b_allocated; /* cum. bytes allocated */
+ int64 b_freed; /* cum. bytes freed */
};
struct pool_extent
struct align_test {
void *foo;
- uint64 bar;
+ int64 bar;
};
#define MINALIGN offsetof(struct align_test, bar)
for (prev = NULL, cur = pool->free; cur; prev = cur, cur = cur->next)
{
if (addr >= cur->start
- && addr < cur->start + pool->size)
+ && addr < PTR_ADD(cur->start, pool->size))
break;
}
if (!cur)