]> git.apps.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>
Tue, 17 Jan 2017 20:56:40 +0000 (15:56 -0500)
commit2dd413e5529c13ce6c6ca1ae27ad159f946e9fe7
treef1212daace8d058d2f774dd25080ea5c06169b86
parent97f977359515da31720eb7e01d3ca4ff775967fb
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>
(cherry picked from commit 95c78706317f2fe61b8f48de5e8539ed49221d64)
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