From: Christoph Lameter <cl@linux.com>
To: Pekka Enberg <penberg@kernel.org>
Cc: Joonsoo Kim <js1304@gmail.com>,
Glauber Costa <glommer@parallels.com>,
linux-mm@kvack.org, David Rientjes <rientjes@google.com>,
elezegarcia@gmail.com
Subject: Ren [02/12] Move kmalloc related function defs
Date: Thu, 13 Dec 2012 21:15:34 +0000 [thread overview]
Message-ID: <0000013b961f56fb-ab2d92ba-2ebf-4da1-b688-30144d2d1802-000000@email.amazonses.com> (raw)
In-Reply-To: <20121213211413.134419945@linux.com>
Move these functions higher up in slab.h so that they are grouped with other
generic kmalloc related definitions.
Acked-by: Glauber Costa <glommer@parallels.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Index: linux/include/linux/slab.h
===================================================================
--- linux.orig/include/linux/slab.h 2012-11-01 10:09:46.745412498 -0500
+++ linux/include/linux/slab.h 2012-11-01 10:10:24.838044511 -0500
@@ -142,6 +142,15 @@ void kmem_cache_free(struct kmem_cache *
(__flags), NULL)
/*
+ * Common kmalloc functions provided by all allocators
+ */
+void * __must_check __krealloc(const void *, size_t, gfp_t);
+void * __must_check krealloc(const void *, size_t, gfp_t);
+void kfree(const void *);
+void kzfree(const void *);
+size_t ksize(const void *);
+
+/*
* The largest kmalloc size supported by the slab allocators is
* 32 megabyte (2^25) or the maximum allocatable page order if that is
* less than 32 MB.
@@ -177,15 +186,6 @@ void kmem_cache_free(struct kmem_cache *
#endif
/*
- * Common kmalloc functions provided by all allocators
- */
-void * __must_check __krealloc(const void *, size_t, gfp_t);
-void * __must_check krealloc(const void *, size_t, gfp_t);
-void kfree(const void *);
-void kzfree(const void *);
-size_t ksize(const void *);
-
-/*
* Allocator specific definitions. These are mainly used to establish optimized
* ways to convert kmalloc() calls to kmem_cache_alloc() invocations by
* selecting the appropriate general cache at compile time.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next parent reply other threads:[~2012-12-13 21:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20121213211413.134419945@linux.com>
2012-12-13 21:15 ` Christoph Lameter [this message]
2012-12-13 21:15 ` Ren [01/12] slab_common: Use proper formatting specs for unsigned size_t Christoph Lameter
2012-12-17 7:54 ` Glauber Costa
2012-12-13 21:26 ` Ren [07/12] Common constants for kmalloc boundaries Christoph Lameter
2012-12-13 21:26 ` Ren [11/12] Common Kmalloc cache determination Christoph Lameter
2012-12-13 21:26 ` Ren [10/12] stat: Use size_t for sizes instead of unsigned Christoph Lameter
2012-12-13 21:44 ` Ren [05/12] slab: Common name for the per node structures Christoph Lameter
2012-12-13 21:44 ` Ren [04/12] slab: Use common kmalloc_index/kmalloc_size functions Christoph Lameter
2012-12-13 21:44 ` Ren [08/12] Common definition for the array of kmalloc caches Christoph Lameter
2012-12-13 21:45 ` Ren [09/12] Common function to create the kmalloc array Christoph Lameter
2012-12-13 21:45 ` Ren [12/12] slab: Rename list3/l3 to node Christoph Lameter
2012-12-13 21:45 ` Ren [06/12] slab: rename nodelists " Christoph Lameter
2012-12-13 22:00 ` Ren [03/12] Common kmalloc slab index determination Christoph Lameter
2012-12-17 7:57 ` Glauber Costa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0000013b961f56fb-ab2d92ba-2ebf-4da1-b688-30144d2d1802-000000@email.amazonses.com \
--to=cl@linux.com \
--cc=elezegarcia@gmail.com \
--cc=glommer@parallels.com \
--cc=js1304@gmail.com \
--cc=linux-mm@kvack.org \
--cc=penberg@kernel.org \
--cc=rientjes@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox