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)
commitfe3ad593e2c34457ffa6233014ab19f4d36f85f2
treeeed6ceddbca3021e7492a1baaf658922e2aa8a6c
parenta9a0c51af4e7c825c014b40694571456a75ebbc4
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