]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: ref counted buffer
authorSage Weil <sage@newdream.net>
Tue, 22 Sep 2009 17:14:32 +0000 (10:14 -0700)
committerSage Weil <sage@newdream.net>
Tue, 22 Sep 2009 17:14:32 +0000 (10:14 -0700)
commitff38c2d1e1239d25b0133afc888f45c393d5e24e
tree573d89959725f639b777904abfd7ef70330d8d64
parent71b5350c4c922194cf9be2b15ead9a2b650b1231
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 used for allocating memory for xattr data, among other things.

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