]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: move safe arithmetic functions to buider.c
authorIlya Dryomov <idryomov@gmail.com>
Thu, 11 Jun 2015 09:45:56 +0000 (12:45 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 15 Jun 2015 11:26:51 +0000 (14:26 +0300)
commit9a8ed8b11c3e2031993374e6ae8d236c95bb9742
tree6c0b7c07b4cc74cc9cf4b3bddedef4724074c3c9
parentac4477926f49dc91e012d61096dbbdde5650bc8a
crush: move safe arithmetic functions to buider.c

Given that crush_{addition,multiplication}_is_unsafe() are only used
for compiling maps, they have no business in crush.c which is shared
with the kernel.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/crush/builder.c
src/crush/builder.h
src/crush/crush.c
src/crush/crush.h