]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:38:42 +0000 (11:38 -0800)
commit7389a76f02bf56340f26fa933b9fc6a1dece9148
tree0c4fbaaf31b0e51b8f1e745a92c23980b1309a31
parent328677c24bbae17f3f91ffce3b2351a27933741c
libceph: change ceph_con_in_msg_alloc convention to be less weird

(cherry picked from commit 4740a623d20c51d167da7f752b63e2b8714b2543)

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/messenger.c