libceph: encapsulate connection kvec operations
authorAlex Elder <elder@dreamhost.com>
Tue, 14 Feb 2012 20:05:33 +0000 (14:05 -0600)
committerAlex Elder <elder@dreamhost.com>
Thu, 22 Mar 2012 15:47:50 +0000 (10:47 -0500)
commit859eb7994876f26fd9f52d9589fbcab8e2fe8069
tree128067d342a4937228ac5c307c153b9b95ec254e
parent963be4d7709f84d865f76d12d5b0ec7edad1c498
libceph: encapsulate connection kvec operations

Encapsulate the operation of adding a new chunk of data to the next
open slot in a ceph_connection's out_kvec array.  Also add a "reset"
operation to make subsequent add operations start at the beginning
of the array again.

Use these routines throughout, avoiding duplicate code and ensuring
all calls are handled consistently.

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