]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: do crc calculations outside loop
authorAlex Elder <elder@dreamhost.com>
Wed, 15 Feb 2012 13:43:54 +0000 (07:43 -0600)
committerAlex Elder <elder@dreamhost.com>
Thu, 22 Mar 2012 15:47:51 +0000 (10:47 -0500)
commit5d5dcf81f7f39e62f8d1311e8710a91447bc1974
treeeed6ceddbca3021e7492a1baaf658922e2aa8a6c
parent1ad0d1f280c1f2cf689319b471dcfa4f77c77c22
libceph: do crc calculations outside loop

Move blocks of code out of loops in read_partial_message_section()
and read_partial_message().  They were only was getting called at
the end of the last iteration of the loop anyway.

Signed-off-by: Alex Elder <elder@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>
net/ceph/messenger.c