Skip to content

Commit

Permalink
slub: init_kmem_cache_cpus() and put_cpu_partial() can be static
Browse files Browse the repository at this point in the history
Acked-by: Glauber Costa <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Fengguang Wu <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
  • Loading branch information
Fengguang Wu authored and penberg committed Oct 3, 2012
1 parent 2b847c3 commit 788e1aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 788e1aa

Please sign in to comment.