ceph: make ceph_msg_new return NULL on failure; clean up, fix callers
authorSage Weil <sage@newdream.net>
Thu, 1 Apr 2010 23:06:19 +0000 (16:06 -0700)
committerSage Weil <sage@newdream.net>
Mon, 17 May 2010 22:25:18 +0000 (15:25 -0700)
commita79832f26be370ee26ea81eecdfd42d10e49d66a
tree59d55f3c928558505a420830eddfb01b3186d467
parentd52f847a841bfeba0ea87a7842732d388a1ca2e8
ceph: make ceph_msg_new return NULL on failure; clean up, fix callers

Returning ERR_PTR(-ENOMEM) is useless extra work.  Return NULL on failure
instead, and fix up the callers (about half of which were wrong anyway).

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/caps.c
fs/ceph/file.c
fs/ceph/mds_client.c
fs/ceph/messenger.c
fs/ceph/mon_client.c
fs/ceph/msgpool.c
fs/ceph/osd_client.c