]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/BlueFS: fix reclaim_blocks
authorSage Weil <sage@redhat.com>
Fri, 30 Dec 2016 17:22:42 +0000 (12:22 -0500)
committerSage Weil <sage@redhat.com>
Mon, 9 Jan 2017 22:10:55 +0000 (16:10 -0600)
commitc5d458df94f940760c2af03265e65ce7df58630c
treeda3e81df757466fb96616688de2d126ab08e2ce1
parent0ac90c902d356330dbd9692440205842359e9a89
os/bluestore/BlueFS: fix reclaim_blocks

We need to return all extents to the caller.  The current code
fails to assign *offset so it appears like a single extent from
the start of the device, which is very wrong.

Fixes: http://tracker.ceph.com/issues/18368
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 882ad33b527c9ea2224dcdc28f9fa3f459ee4712)
src/os/bluestore/BlueFS.cc
src/os/bluestore/BlueFS.h
src/os/bluestore/BlueStore.cc