]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/bluestore/BlueFS: apply shared_alloc_size to shared device
authorSage Weil <sage@redhat.com>
Wed, 7 Aug 2019 17:41:33 +0000 (12:41 -0500)
committerSage Weil <sage@redhat.com>
Fri, 9 Aug 2019 15:10:12 +0000 (10:10 -0500)
commite8b5a458c306dfe166b09239fc9f57c04fa47ead
tree6da25233aeec732543cbef30d92cb844ad3ac086
parent99c56559d17fac4fde65ef38a82ac6cab090dafb
os/bluestore/BlueFS: apply shared_alloc_size to shared device

Keep an alloc_size vector so that we have this value handy at all times.
Allow bluestore to fetch this value directly instead of looking at the
bluefs_* config options since this encapsulates things a bit better, and
also isn't vulnerable to the config setting changing at runtime.

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