lkml.org 
[lkml]   [2006]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] alloc_memory_early() routines
On Wed, 10 May 2006, Pekka Enberg wrote:

> > +void * __init alloc_memory_early_node(size_t size, gfp_t flags, int node)
> > +{
> > + if (g_cpucache_up == FULL)
> > + return kmalloc_node(size, flags, node);
> > + else
> > + return alloc_bootmem_node(NODE_DATA(node), size);
> > +}
>
> I'd prefer you put this in mm/bootmem.c and added a
>
> int slab_is_available(void)
> {
> return g_cpucache_up == FULL;
> }
>
> to mm/slab.c instead.

Does slab not available mean that bootmem can be used?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-10 09:14    [W:0.047 / U:0.632 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site