ceph: simplify ceph_buffer interface
authorSage Weil <sage@newdream.net>
Mon, 7 Dec 2009 20:17:17 +0000 (12:17 -0800)
committerSage Weil <sage@newdream.net>
Mon, 7 Dec 2009 20:17:17 +0000 (12:17 -0800)
commitb6c1d5b81ea0841ae9d3ce2cda319ab986b081cf
treec7ddbaa1acdaec0704dfb0c1c539ddaf6e8c7506
parentdd26d857a7bf1b5b734a23180c19eac3e46db944
ceph: simplify ceph_buffer interface

We never allocate the ceph_buffer and buffer separtely, so use a single
constructor.

Disallow put on NULL buffer; make the caller check.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/buffer.c
fs/ceph/buffer.h
fs/ceph/inode.c
fs/ceph/messenger.c
fs/ceph/xattr.c