]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix the demotion in StupidAllocator::init_rm_free 20430/head
authorKefu Chai <kchai@redhat.com>
Wed, 14 Feb 2018 04:17:06 +0000 (12:17 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 14 Feb 2018 04:22:56 +0000 (12:22 +0800)
commitd43c8da83329dd743c635869b1443366d03839fd
tree10dfd26d40ca3e806a166aecc37eaf2e7d7c2703
parent5f7c250d297ad59762b3dbdd082627e536aed2ca
os/bluestore: fix the demotion in StupidAllocator::init_rm_free

* we should update the _size field when demotion kicks in, otherwise the
  interval_set::m and interval_set::_size won't be consistent.
* also rename post_process to claim, as it "steals" the leftover(s) of
chopped segment.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/interval_set.h
src/os/bluestore/StupidAllocator.cc