]> git.karo-electronics.de Git - linux-beck.git/commit
libceph: simplify new message initialization
authorAlex Elder <elder@inktank.com>
Sat, 2 Mar 2013 00:00:16 +0000 (18:00 -0600)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:16:35 +0000 (21:16 -0700)
commit9516e45b25d9967c35d2e798496ec5e590aaa24f
treed5020891abe591d1821129ce15db8d0e797c1a21
parent35c7bfbcd4fabded090e5ab316a1cbf053a0a980
libceph: simplify new message initialization

Rather than explicitly initializing many fields to 0, NULL, or false
in a newly-allocated message, just use kzalloc() for allocating new
messages.  This will become a much more convenient way of doing
things anyway for upcoming patches that abstract the data field.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
net/ceph/messenger.c