]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/bluestore/BlueFS: align bluefs' owned extents to alloc_size
authorSage Weil <sage@redhat.com>
Sat, 1 Feb 2020 17:42:19 +0000 (11:42 -0600)
committerSage Weil <sage@redhat.com>
Fri, 7 Feb 2020 21:56:10 +0000 (15:56 -0600)
commitd8f8f4ce119ed6bd449689eb3142ea4ddca29afd
treea07d3805e6bba7fc505a23f3e93c4ba1c9f7b0fd
parent11d61712308db94a975fa5b577453288d3c73ec1
os/bluestore/BlueFS: align bluefs' owned extents to alloc_size

If bluefs is allocated an extent, adjust it to align it to the allocator's
granularity before adding it.

Note that the BitmapAllocator actuall does this in init_*_alloc(), but
doing it here in the caller fixes the allocation check that follows.

Fixes: https://tracker.ceph.com/issues/43904
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueFS.cc
src/os/bluestore/BlueFS.h