]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ceph: ref counted buffer
authorSage Weil <sage@newdream.net>
Tue, 6 Oct 2009 18:31:07 +0000 (11:31 -0700)
committerSage Weil <sage@newdream.net>
Tue, 6 Oct 2009 18:31:07 +0000 (11:31 -0700)
commitc30dbb9cc7fc75ab1d0ee6fb084ba4684f7a665d
tree7e702615046c0c866bb0229c731f86916c526115
parentde57606c23afded22202825b3db8a5d61859f198
ceph: ref counted buffer

struct ceph_buffer is a simple ref-counted buffer.  We transparently
choose between kmalloc for small buffers and vmalloc for large ones.

This is currently used only for allocating memory for xattr data.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/buffer.c [new file with mode: 0644]
fs/ceph/buffer.h [new file with mode: 0644]