Re: CK2 [04/15] slab: Use the new create_boot_cache function to simplify bootstrap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2012/10/19 Christoph Lameter <cl@xxxxxxxxx>:


> @@ -2270,7 +2245,16 @@ static int __init_refok setup_cpu_cache(
>
>         if (slab_state == DOWN) {
>                 /*
> -                * Note: the first kmem_cache_create must create the cache
> +                * Note: Creation of first cache (kmem_cache).
> +                * The setup_list3s is taken care
> +                * of by the caller of __kmem_cache_create
> +                */
> +               cachep->array[smp_processor_id()] = &initarray_generic.cache;
> +               slab_state = PARTIAL;
> +       } else
> +       if (slab_state == PARTIAL) {
> +               /*
> +                * Note: the second kmem_cache_create must create the cache
>                  * that's used by kmalloc(24), otherwise the creation of
>                  * further caches will BUG().
>                  */

Minor nitpick is here

} else
if (slab_state = PARTIAL) {
==>
else if (slab_state == PARTIAL)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]