diff options
author | Alex Elder <elder@inktank.com> | 2012-06-04 14:43:32 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-26 11:38:23 -0800 |
commit | 35067a20685e5f51513c3633256e658fc71e847e (patch) | |
tree | 5c1837a2a781a18c8aaa458cdce9a0e300a188d0 /include | |
parent | 6880138c03448b3c375a3d7a8ef6acd688e6fb40 (diff) |
libceph: tweak ceph_alloc_msg()
(cherry picked from commit 1c20f2d26795803fc4f5155fe4fca5717a5944b6)
The function ceph_alloc_msg() is only used to allocate a message
that will be assigned to a connection's in_msg pointer. Rename the
function so this implied usage is more clear.
In addition, make that assignment inside the function (again, since
that's precisely what it's intended to be used for). This allows us
to return what is now provided via the passed-in address of a "skip"
variable. The return type is now Boolean to be explicit that there
are only two possible outcomes.
Make sure the result of an ->alloc_msg method call always sets the
value of *skip properly.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions