]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: use p2 macros to simplify bit-allocator block alignment
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 12 Jul 2016 02:33:57 +0000 (10:33 +0800)
committerMark Nelson <mnelson@redhat.com>
Mon, 18 Jul 2016 15:47:41 +0000 (10:47 -0500)
commite3bd10336bd01def97731fc52b9ceb9e9ab15a73
tree1d993c24fea6dcaea05a87e0102b0e7c6391a7f2
parent7f564d9e2cc3b19e661bffe278516e7ab64d23b0
os/bluestore: use p2 macros to simplify bit-allocator block alignment

Mark's comments:

This passed "ceph_test_objectstore --gtest_filter=*/2".
This PR did not appear to have a significant impact on performance tests.

Closes #10253

os/bluestore: require block_size to be power of 2 aligned

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
os/bluestore: use ISP2 macro for zone/span size checking

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BitMapAllocator.cc