]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: try to gift large extents, then fall back to small extents
authorSage Weil <sage@redhat.com>
Mon, 19 Aug 2019 15:09:36 +0000 (10:09 -0500)
committerVikhyat Umrao <vumrao@redhat.com>
Tue, 10 Sep 2019 20:48:11 +0000 (13:48 -0700)
commit5c16c95c46e7616a6307d7db34a0728445a86783
tree2afd043e124e4d47302aa02521165bdee82d7c07
parent3f5a72bbe54603970e40a3939337aa15d39a491f
os/bluestore: try to gift large extents, then fall back to small extents

First try to gift using the larger alloc_size (normally bluefs_alloc_size,
but here max(bluefs_alloc_size,bluefs_shared_alloc_size) just in case the
settings are weird.  If that fails, then try the shared_alloc_size.  If
that fails, fail and complain as before, with an more accurate error
message.

This is a slightly modified version of the luminous patch,
91a1fa17470b158ed1fe22a725cd42ac28344237

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