]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/FreelistManager: make safe enumeration interface
authorSage Weil <sage@redhat.com>
Sun, 24 Apr 2016 22:31:59 +0000 (18:31 -0400)
committerSage Weil <sage@redhat.com>
Sat, 30 Apr 2016 02:06:07 +0000 (22:06 -0400)
commit8db30b07d0f34af1766e0611e6312893640bbca5
tree9eacf11a4b64dff025f1f406ecb0f3d1b6a56d3b
parent5ff4988c09ccc2af6ff72f30d053b5864a8c8e14
os/bluestore/FreelistManager: make safe enumeration interface

Do not expose the internal representation; instead, make a super-simple
enumeration interface. There is only ever one user at a time (mount, and
fsck), so the locking is even superfluous.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/FreelistManager.cc
src/os/bluestore/FreelistManager.h