summaryrefslogtreecommitdiff
path: root/net/ceph/buffer.c
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@redhat.com>2014-10-23 16:32:57 +0400
committerIlya Dryomov <idryomov@redhat.com>2014-12-17 20:09:50 +0300
commit4965fc38c460b274b2a1789e1165a25fb0409d7e (patch)
tree540d27c966a31b6e6f5a21bd44608e3edf3d1646 /net/ceph/buffer.c
parent9280be24dc9c7aaee230de3ed33f8357386de9a2 (diff)
libceph: nuke ceph_kvfree()
Use kvfree() from linux/mm.h instead, which is identical. Also fix the ceph_buffer comment: we will allocate with kmalloc() up to 32k - the value of PAGE_ALLOC_COSTLY_ORDER, but that really is just an implementation detail so don't mention it at all. Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
Diffstat (limited to 'net/ceph/buffer.c')
-rw-r--r--net/ceph/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ceph/buffer.c b/net/ceph/buffer.c
index 621b5f65407f..add5f921a0ff 100644
--- a/net/ceph/buffer.c
+++ b/net/ceph/buffer.c
@@ -6,7 +6,7 @@
#include <linux/ceph/buffer.h>
#include <linux/ceph/decode.h>
-#include <linux/ceph/libceph.h> /* for ceph_kv{malloc,free} */
+#include <linux/ceph/libceph.h> /* for ceph_kvmalloc */
struct ceph_buffer *ceph_buffer_new(size_t len, gfp_t gfp)
{
@@ -35,7 +35,7 @@ void ceph_buffer_release(struct kref *kref)
struct ceph_buffer *b = container_of(kref, struct ceph_buffer, kref);
dout("buffer_release %p\n", b);
- ceph_kvfree(b->vec.iov_base);
+ kvfree(b->vec.iov_base);
kfree(b);
}
EXPORT_SYMBOL(ceph_buffer_release);