* [patch] slub: make early_kmem_cache_node_alloc void
@ 2008-11-26 3:14 David Rientjes
2008-11-26 13:44 ` Christoph Lameter
2008-11-26 14:53 ` Pekka Enberg
0 siblings, 2 replies; 3+ messages in thread
From: David Rientjes @ 2008-11-26 3:14 UTC (permalink / raw)
To: Andrew Morton; +Cc: Christoph Lameter, linux-kernel
The return value for early_kmem_cache_node_alloc() is unused, so it is
better defined as void.
Cc: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: David Rientjes <rientjes@google.com>
---
mm/slub.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/mm/slub.c b/mm/slub.c
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -2073,8 +2073,7 @@ static inline int alloc_kmem_cache_cpus(struct kmem_cache *s, gfp_t flags)
* when allocating for the kmalloc_node_cache. This is used for bootstrapping
* memory on a fresh node that has no slab structures yet.
*/
-static struct kmem_cache_node *early_kmem_cache_node_alloc(gfp_t gfpflags,
- int node)
+static void early_kmem_cache_node_alloc(gfp_t gfpflags, int node)
{
struct page *page;
struct kmem_cache_node *n;
@@ -2112,7 +2111,6 @@ static struct kmem_cache_node *early_kmem_cache_node_alloc(gfp_t gfpflags,
local_irq_save(flags);
add_partial(n, page, 0);
local_irq_restore(flags);
- return n;
}
static void free_kmem_cache_nodes(struct kmem_cache *s)
@@ -2144,8 +2142,7 @@ static int init_kmem_cache_nodes(struct kmem_cache *s, gfp_t gfpflags)
n = &s->local_node;
else {
if (slab_state == DOWN) {
- n = early_kmem_cache_node_alloc(gfpflags,
- node);
+ early_kmem_cache_node_alloc(gfpflags, node);
continue;
}
n = kmem_cache_alloc_node(kmalloc_caches,
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [patch] slub: make early_kmem_cache_node_alloc void
2008-11-26 3:14 [patch] slub: make early_kmem_cache_node_alloc void David Rientjes
@ 2008-11-26 13:44 ` Christoph Lameter
2008-11-26 14:53 ` Pekka Enberg
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Lameter @ 2008-11-26 13:44 UTC (permalink / raw)
To: David Rientjes; +Cc: Andrew Morton, linux-kernel
Acked-by: Christoph Lameter <cl@linux-foundation.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch] slub: make early_kmem_cache_node_alloc void
2008-11-26 3:14 [patch] slub: make early_kmem_cache_node_alloc void David Rientjes
2008-11-26 13:44 ` Christoph Lameter
@ 2008-11-26 14:53 ` Pekka Enberg
1 sibling, 0 replies; 3+ messages in thread
From: Pekka Enberg @ 2008-11-26 14:53 UTC (permalink / raw)
To: David Rientjes; +Cc: Andrew Morton, Christoph Lameter, linux-kernel
On Wed, Nov 26, 2008 at 5:14 AM, David Rientjes <rientjes@google.com> wrote:
> The return value for early_kmem_cache_node_alloc() is unused, so it is
> better defined as void.
>
> Cc: Christoph Lameter <cl@linux-foundation.org>
> Signed-off-by: David Rientjes <rientjes@google.com>
Applied, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-26 14:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-26 3:14 [patch] slub: make early_kmem_cache_node_alloc void David Rientjes
2008-11-26 13:44 ` Christoph Lameter
2008-11-26 14:53 ` Pekka Enberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®