From: Alex Elder Date: Thu, 14 Mar 2013 19:09:06 +0000 (-0500) Subject: libceph: move cursor into message X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~26^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36153ec9dd6287d7cedf6afb51453c445d946cee;p=pandora-kernel.git libceph: move cursor into message A message will only be processing a single data item at a time, so there's no need for each data item to have its own cursor. Move the cursor embedded in the message data structure into the message itself. To minimize the impact, keep the data->cursor field, but make it be a pointer to the cursor in the message. Move the definition of ceph_msg_data above ceph_msg_data_cursor so the cursor can point to the data without a forward definition rather than vice-versa. This and the upcoming patches are part of: http://tracker.ceph.com/issues/3761 Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed