]> git.baikalelectronics.ru Git - kernel.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)
commit33ca310caf2c4b54f11832a78aa62584e8183aa1
treee1d859e4e6742cb872b06d323a909f648af62c7f
parent9b42e8d6564d8dcd1e75007f9a23dfcd137360d4
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