diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2012-09-28 10:34:05 +0200 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2012-10-03 08:48:41 +0200 |
commit | 788e1aadadd0d5a9cbffce10c34840b4072bc733 (patch) | |
tree | 9d64386edf66270a4005f0a481ecd7c782f0d070 /mm/slub.c | |
parent | mm, slub: Rename slab_alloc() -> slab_alloc_node() to match SLAB (diff) | |
download | linux-788e1aadadd0d5a9cbffce10c34840b4072bc733.tar.xz linux-788e1aadadd0d5a9cbffce10c34840b4072bc733.zip |
slub: init_kmem_cache_cpus() and put_cpu_partial() can be static
Acked-by: Glauber Costa <glommer@parallels.com>
Acked-by: Christoph Lameter <cl@linux.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c index f074f756405a..944b4edaeb18 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1716,7 +1716,7 @@ static inline void note_cmpxchg_failure(const char *n, stat(s, CMPXCHG_DOUBLE_CPU_FAIL); } -void init_kmem_cache_cpus(struct kmem_cache *s) +static void init_kmem_cache_cpus(struct kmem_cache *s) { int cpu; @@ -1941,7 +1941,7 @@ static void unfreeze_partials(struct kmem_cache *s) * If we did not find a slot then simply move all the partials to the * per node partial list. */ -int put_cpu_partial(struct kmem_cache *s, struct page *page, int drain) +static int put_cpu_partial(struct kmem_cache *s, struct page *page, int drain) { struct page *oldpage; int pages; |