]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/AvlAllocator: use cbit for counting the order of alignment 41825/head
authorKefu Chai <kchai@redhat.com>
Wed, 2 Jun 2021 08:31:18 +0000 (16:31 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 12 Jun 2021 05:16:17 +0000 (13:16 +0800)
commit573cbb796e8ba2f433caa308925735101a8161a6
tree6f17e3ffb7490a370887bf01dd27fbf222f847ba
parent9b52ba1dd0a5e199833d7ab2561a7b388d85afc1
os/bluestore/AvlAllocator: use cbit for counting the order of alignment

no need to calculate the alignment first, cbits() would suffice. as it
counts the first set bit and the follow 0's in a number. the result
is identical to the cbit(alignment of that number).

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/bluestore/AvlAllocator.cc