diff options
author | Alexander Potapenko <glider@google.com> | 2017-09-07 01:19:15 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-07 02:27:24 +0200 |
commit | ea37df54d2b7950d607800ee417a1d59b95068c2 (patch) | |
tree | c8e59d36c0e421b92e9759d2326acb9dba4f5afb /init | |
parent | ocfs2: clean up some dead code (diff) | |
download | linux-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