]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: return blocks allocated from allocate()
authorSage Weil <sage@redhat.com>
Tue, 17 Jan 2017 15:20:07 +0000 (10:20 -0500)
committerSage Weil <sage@redhat.com>
Wed, 18 Jan 2017 13:38:44 +0000 (07:38 -0600)
commit5ab034345d7320fbc86a2133c0c29ec1aca4b71a
treef0754b068655b3e78020df212e990f4c8ac96198
parent5297858938e91ff54d5e57c4c3129647e47e3492
os/bluestore: return blocks allocated from allocate()

Instead of having a separate output argument with the number of
blocks allocated, just return it via the return value.  Simplifies
the calling convention.

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