summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2017-09-07 01:19:15 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-09-07 02:27:24 +0200
commitea37df54d2b7950d607800ee417a1d59b95068c2 (patch)
treec8e59d36c0e421b92e9759d2326acb9dba4f5afb /init
parentocfs2: clean up some dead code (diff)
downloadlinux-ea37df54d2b7950d607800ee417a1d59b95068c2.tar.xz
linux-ea37df54d2b7950d607800ee417a1d59b95068c2.zip
slub: tidy up initialization ordering
- free_kmem_cache_nodes() frees the cache node before nulling out a reference to it - init_kmem_cache_nodes() publishes the cache node before initializing it Neither of these matter at runtime because the cache nodes cannot be looked up by any other thread. But it's neater and more consistent to reorder these. Link: http://lkml.kernel.org/r/20170707083408.40410-1-glider@google.com Signed-off-by: Alexander Potapenko <glider@google.com> 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 'init')
0 files changed, 0 insertions, 0 deletions