All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: Pekka Enberg <penberg@kernel.org>
Cc: Christoph Lameter <cl@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Glauber Costa <glommer@parallels.com>
Subject: [PATCH] slub: init_kmem_cache_cpus() and put_cpu_partial() can be static
Date: Fri, 28 Sep 2012 16:34:05 +0800	[thread overview]
Message-ID: <20120928083405.GA23740@localhost> (raw)

Acked-by: Glauber Costa <glommer@parallels.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
 mm/slub.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux.orig/mm/slub.c	2012-09-24 10:22:11.000000000 +0800
+++ linux/mm/slub.c	2012-09-28 16:31:31.987092387 +0800
@@ -1709,7 +1709,7 @@ static inline void note_cmpxchg_failure(
 	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;
 
@@ -1934,7 +1934,7 @@ static void unfreeze_partials(struct kme
  * 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;

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

WARNING: multiple messages have this Message-ID (diff)
From: Fengguang Wu <fengguang.wu@intel.com>
To: Pekka Enberg <penberg@kernel.org>
Cc: Christoph Lameter <cl@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Glauber Costa <glommer@parallels.com>
Subject: [PATCH] slub: init_kmem_cache_cpus() and put_cpu_partial() can be static
Date: Fri, 28 Sep 2012 16:34:05 +0800	[thread overview]
Message-ID: <20120928083405.GA23740@localhost> (raw)

Acked-by: Glauber Costa <glommer@parallels.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
 mm/slub.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux.orig/mm/slub.c	2012-09-24 10:22:11.000000000 +0800
+++ linux/mm/slub.c	2012-09-28 16:31:31.987092387 +0800
@@ -1709,7 +1709,7 @@ static inline void note_cmpxchg_failure(
 	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;
 
@@ -1934,7 +1934,7 @@ static void unfreeze_partials(struct kme
  * 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;

             reply	other threads:[~2012-09-28  8:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-28  8:34 Fengguang Wu [this message]
2012-09-28  8:34 ` [PATCH] slub: init_kmem_cache_cpus() and put_cpu_partial() can be static Fengguang Wu
2012-09-28 14:17 ` Christoph Lameter
2012-09-28 14:17   ` Christoph Lameter
2012-10-03  4:55 ` David Rientjes
2012-10-03  4:55   ` David Rientjes
2012-10-03 14:16   ` Christoph Lameter
2012-10-03 14:16     ` Christoph Lameter
2012-10-03 18:21     ` David Rientjes
2012-10-03 18:21       ` David Rientjes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120928083405.GA23740@localhost \
    --to=fengguang.wu@intel.com \
    --cc=cl@linux-foundation.org \
    --cc=glommer@parallels.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=penberg@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.