]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: don't over-gift if bluefs free is smaller than bluestore_bluefs_min 10950/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 1 Sep 2016 10:42:58 +0000 (18:42 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 1 Sep 2016 10:42:58 +0000 (18:42 +0800)
commit8bab52275aebff5bb22829245456e0d390b07b10
treed7b107ee05cbb0bb90bc676c308fd9da390d87fa
parentf9b083ec9e7d11fe352ae1d7de2816927988552a
os/bluestore: don't over-gift if bluefs free is smaller than bluestore_bluefs_min

- If free space of bluefs is smaller than bluestore_bluefs_min, then raise it
  exactly up to bluestore_bluefs_min.

- Pre-check if bluestore_bluefs_min will exceed bluestore_bluefs_max_ratio * bluefs_total,
  so if free space of bluefs is smaller than bluestore_bluefs_min_ratio * bluefs_total,
  we'll still be able to gift.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc