]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/StupidAllocator: be less stupid about alloc_unit
authorSage Weil <sage@redhat.com>
Wed, 23 Dec 2015 21:29:27 +0000 (16:29 -0500)
committerSage Weil <sage@redhat.com>
Fri, 1 Jan 2016 18:08:53 +0000 (13:08 -0500)
commit34a0f30bbd950b05d7ce7e6b46b5194ea5a99b12
treef9c571b27601e0fc020c891b41dd7b28dbb015f7
parent602b8de8348d04f60e6a76853150282eeb351390
os/bluestore/StupidAllocator: be less stupid about alloc_unit

Make sure the extent we return is aligned to alloc_unit.  If the first
extent isn't suitable, try the next one.

Keep bin 0 for things that are smaller than min_alloc_size.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/StupidAllocator.cc