]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
libceph: encapsulate advancing msg page
authorAlex Elder <elder@inktank.com>
Mon, 11 Jun 2012 19:57:13 +0000 (14:57 -0500)
committerSage Weil <sage@inktank.com>
Fri, 6 Jul 2012 04:14:12 +0000 (21:14 -0700)
commit84ca8fc87fcf4ab97bb8acdb59bf97bb4820cb14
treee1d859e4e6742cb872b06d323a909f648af62c7f
parent739c905baa018c99003564ebc367d93aa44d4861
libceph: encapsulate advancing msg page

In write_partial_msg_pages(), once all the data from a page has been
sent we advance to the next one.  Put the code that takes care of
this into its own function.

While modifying write_partial_msg_pages(), make its local variable
"in_trail" be Boolean, and use the local variable "msg" (which is
just the connection's current out_msg pointer) consistently.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
net/ceph/messenger.c