summaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorOscar Salvador2018-02-01 01:15:39 +0100
committerLinus Torvalds2018-02-01 02:18:35 +0100
commit84ebb5827d015c1045429d018bf9a48f95f082a6 (patch)
treeb9aaaf0e7b135f7b406dcd35f66f2503a841b54d /mm/slub.c
parentmm/slab_common.c: make calculate_alignment() static (diff)
downloadkernel-qcow2-linux-84ebb5827d015c1045429d018bf9a48f95f082a6.tar.gz
kernel-qcow2-linux-84ebb5827d015c1045429d018bf9a48f95f082a6.tar.xz
kernel-qcow2-linux-84ebb5827d015c1045429d018bf9a48f95f082a6.zip
mm/slab.c: remove redundant assignments for slab_state
slab_state is being set to "UP" in create_kmalloc_caches(), and later on we set it again in kmem_cache_init_late(), but slab_state does not change in the meantime. Remove the redundant assignment from kmem_cache_init_late(). And unless I overlooked anything, the same goes for "slab_state = FULL". slab_state is set to "FULL" in kmem_cache_init_late(), but it is later being set again in cpucache_init(), which gets called from do_initcall_level(). So remove the assignment from cpucache_init() as well. Link: http://lkml.kernel.org/r/20171215134452.GA1920@techadventures.net Signed-off-by: Oscar Salvador <osalvador@techadventures.net> Acked-by: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slub.c')
0 files changed, 0 insertions, 0 deletions