]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: change ceph_con_in_msg_alloc convention to be less weird
authorSage Weil <sage@inktank.com>
Tue, 31 Jul 2012 01:19:30 +0000 (18:19 -0700)
committerSage Weil <sage@inktank.com>
Tue, 31 Jul 2012 01:19:30 +0000 (18:19 -0700)
commit32a8f974194754783093d778ad30107dc6cc8cab
tree25616d4073f56a2383fd155c457d97603d65b220
parentff950703515a4805158df16c0e2d58dbfe2a277a
libceph: change ceph_con_in_msg_alloc convention to be less weird

This function's calling convention is very limiting.  In particular,
we can't return any error other than ENOMEM (and only implicitly),
which is a problem (see next patch).

Instead, return an normal 0 or error code, and make the skip a pointer
output parameter.  Drop the useless in_hdr argument (we have the con
pointer).

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