]> git-server-git.apps.pok.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>
Thu, 4 Dec 2014 18:05:21 +0000 (19:05 +0100)
commit5205d4dacf7ebe2e42d2294bc30cb27f226c8d22
treef0e67f15b0330320707bf3db89fc1d31d872dddf
parent80463596919d28f58010d16ad017b3c5ae6e558c
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>
(cherry picked from commit 73ad2d63d479b09037d50246106bbd4075fbce80)
src/include/buffer.h