]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: allow size alignment that is not a power of two
authorLoic Dachary <ldachary@redhat.com>
Tue, 2 Dec 2014 01:04:14 +0000 (02:04 +0100)
committerLoic Dachary <ldachary@redhat.com>
Tue, 2 Dec 2014 20:15:26 +0000 (21:15 +0100)
commit73ad2d63d479b09037d50246106bbd4075fbce80
tree251e9981f35586f73a5109f70540930aa45e93a5
parent9ade88e8dacc9b96c042bb668f4452447139a544
common: allow size alignment that is not a power of two

Do not assume the alignment is a power of two in the is_n_align_sized()
predicate. When used in the context of erasure code it is common
for chunks to not be powers of two.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/include/buffer.h