mirror of
https://github.com/ceph/ceph
synced 2025-04-01 00:26:47 +00:00
kclient: no need for static ceph_buffer
This commit is contained in:
parent
0f22324d86
commit
c0c3444e96
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user