]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: use local variables for message positions
authorAlex Elder <elder@inktank.com>
Thu, 7 Mar 2013 05:39:38 +0000 (23:39 -0600)
committerGreg Farnum <greg@inktank.com>
Wed, 13 Mar 2013 00:45:12 +0000 (17:45 -0700)
commit338964611e55688f377b93a8623214eb05ed78dc
treea5638d81a0106984ca708a13381ee2114e407c39
parenta9294c10a682396e2ccfd6912280d924ea3e24fa
libceph: use local variables for message positions

There are several places where a message's out_msg_pos or in_msg_pos
field is used repeatedly within a function.  Use a local pointer
variable for this purpose to unclutter the code.

This and the upcoming cleanup patches are related to:
    http://tracker.ceph.com/issues/4403

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
net/ceph/messenger.c