From: Alex Elder Date: Wed, 7 Mar 2012 17:40:08 +0000 (-0600) Subject: libceph: use kernel_sendpage() for sending zeroes X-Git-Tag: v3.4-rc1~76^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31739139f3ed7be802dd9019ec8d8cc910e3d241;p=pandora-kernel.git libceph: use kernel_sendpage() for sending zeroes If a message queued for send gets revoked, zeroes are sent over the wire instead of any unsent data. This is done by constructing a message and passing it to kernel_sendmsg() via ceph_tcp_sendmsg(). Since we are already working with a page in this case we can use the sendpage interface instead. Create a new ceph_tcp_sendpage() helper that sets up flags to match the way ceph_tcp_sendmsg() does now. Signed-off-by: Alex Elder Reviewed-by: Sage Weil --- Reading git-diff-tree failed