Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 788e1aad authored by Fengguang Wu's avatar Fengguang Wu Committed by Pekka Enberg
Browse files

slub: init_kmem_cache_cpus() and put_cpu_partial() can be static

parent 2b847c3c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;