diff options
author | Alex Elder <elder@inktank.com> | 2013-03-07 00:39:39 -0500 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-02 00:16:47 -0400 |
commit | 78625051b524e104332e69a9079d0ee9a2100cf2 (patch) | |
tree | 8dd3e1fbe633b30ed7bf38bd6a83a4497e992627 /include/linux/console_struct.h | |
parent | bae6acd9c65cbfeffc66a9f48ae91dca6e3aec85 (diff) |
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 <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'include/linux/console_struct.h')
0 files changed, 0 insertions, 0 deletions