From: Alex Elder Date: Thu, 7 Mar 2013 05:39:39 +0000 (-0600) Subject: libceph: consolidate message prep code X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~26^2~207 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78625051b524e104332e69a9079d0ee9a2100cf2;p=pandora-kernel.git libceph: consolidate message prep code In prepare_write_message_data(), various fields are initialized in preparation for writing message data out. Meanwhile, in read_partial_message(), there is essentially the same block of code, operating on message variables associated with an incoming message. Generalize prepare_write_message_data() so it works for both incoming and outcoming messages, and use it in both spots. The did_page_crc is not used for input (so it's harmless to initialize it). Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed