]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: no need for static ceph_buffer
authorSage Weil <sage@newdream.net>
Mon, 21 Sep 2009 23:26:35 +0000 (16:26 -0700)
committerSage Weil <sage@newdream.net>
Mon, 21 Sep 2009 23:26:35 +0000 (16:26 -0700)
src/kernel/buffer.h

index b4ccb948b69fceec41e85f82a7b93ea577d330cc..128593d3bc9aeb4dc0563a5afc73379e682617f3 100644 (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;
 }