]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix the demotion in StupidAllocator::init_rm_free 21995/head
authorKefu Chai <kchai@redhat.com>
Wed, 14 Feb 2018 04:17:06 +0000 (12:17 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 15 May 2018 06:15:35 +0000 (14:15 +0800)
commit9209bc8241f0c23054cdd6d44c593a2223ed9f93
tree24b6989d0339e6ac5ef3c940a520243e3ea34b76
parent07b0d0ace717990b36e358e4ecdc17665f1e9045
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.

Fixes: https://tracker.ceph.com/issues/24051
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit d43c8da83329dd743c635869b1443366d03839fd)
src/include/interval_set.h
src/os/bluestore/StupidAllocator.cc