From: Sage Weil Date: Mon, 21 Sep 2009 23:26:35 +0000 (-0700) Subject: kclient: no need for static ceph_buffer X-Git-Tag: v0.15~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c0c3444e96053ebea994bd3fd0e3edd62938b69a;p=ceph.git kclient: no need for static ceph_buffer --- diff --git a/src/kernel/buffer.h b/src/kernel/buffer.h index b4ccb948b69..128593d3bc9 100644 --- a/src/kernel/buffer.h +++ b/src/kernel/buffer.h @@ -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; }