No need to worry about the gift/reclaim path--those are very rare.
Signed-off-by: Sage Weil <sage@redhat.com>
}
AllocExtentVector extents;
+ extents.reserve(4); // 4 should be (more than) enough for most allocations
int64_t alloc_len = alloc[id]->allocate(left, min_alloc_size, hint,
&extents);
if (alloc_len < (int64_t)left) {
}
AllocExtentVector extents;
+ extents.reserve(4); // 4 should be (more than) enough for most allocations
int64_t got = alloc->allocate(final_length, min_alloc_size, max_alloc_size,
hint, &extents);
assert(got == (int64_t)final_length);