kclient: no need for static ceph_buffer

This commit is contained in:
Sage Weil 2009-09-21 16:26:35 -07:00
parent 0f22324d86
commit c0c3444e96

View File

@ -17,18 +17,9 @@ struct ceph_buffer {
atomic_t nref;
struct kvec vec;
size_t alloc_len;
bool is_static, is_vmalloc;
bool is_vmalloc;
};
static inline void ceph_buffer_init_static(struct ceph_buffer *b)
{
atomic_set(&b->nref, 1);
b->vec.iov_base = NULL;
b->vec.iov_len = 0;
b->alloc_len = 0;
b->is_static = true;
}
static inline struct ceph_buffer *ceph_buffer_new(gfp_t gfp)
{
struct ceph_buffer *b;
@ -40,7 +31,6 @@ static inline struct ceph_buffer *ceph_buffer_new(gfp_t gfp)
b->vec.iov_base = NULL;
b->vec.iov_len = 0;
b->alloc_len = 0;
b->is_static = false;
return b;
}