]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerVikhyat Umrao <vikhyat@redhat.com>
Tue, 19 Nov 2019 13:25:46 +0000 (05:25 -0800)
commit17e6bbe0e79cb32ef786f8a0b2464f15e7fbc056
tree339b7a0d3e224acabdb20421e5e7d1b690fdbeef
parentcf9c1dc50b1a915776ac0fca24322d9365b85359
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>
(cherry picked from commit e8b5a458c306dfe166b09239fc9f57c04fa47ead)
src/os/bluestore/BlueFS.cc
src/os/bluestore/BlueFS.h
src/os/bluestore/BlueStore.cc