Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f48ba6d7 authored by threader's avatar threader Committed by Bernhard Thoben
Browse files

mm: pick up parts of commit a9730fca9946f3697410479e0ef1bd759ba00a77

Author: Christoph Lameter <cl@linux.com>
Date:   Mon Jun 29 09:28:08 2015 -0500

    Fix kmalloc slab creation sequence
parent 3de15717
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -388,6 +388,12 @@ struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags)
	return kmalloc_caches[kmalloc_type(flags)][index];
}

static void new_kmalloc_cache(int idx, unsigned long flags)
{
       kmalloc_caches[idx] = create_kmalloc_cache(kmalloc_info[idx].name,
                                       kmalloc_info[idx].size, flags);
}

/*
 * Create the kmalloc array. Some of the regular kmalloc arrays
 * may already have been created because they were needed to