linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [patch] mm, slab: mark enable_cpucache as init text
@ 2014-06-17 22:15 David Rientjes
  0 siblings, 0 replies; only message in thread
From: David Rientjes @ 2014-06-17 22:15 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Christoph Lameter, Pekka Enberg, Joonsoo Kim, linux-mm

enable_cpucache() is only called for bootstrap, so it may be moved to init.text 
and freed after boot.

Signed-off-by: David Rientjes <rientjes@google.com>
---
 mm/slab.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/slab.c b/mm/slab.c
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -3861,7 +3861,7 @@ static int do_tune_cpucache(struct kmem_cache *cachep, int limit,
 }
 
 /* Called with slab_mutex held always */
-static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp)
+static int __init enable_cpucache(struct kmem_cache *cachep, gfp_t gfp)
 {
 	int err;
 	int limit = 0;

--
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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-17 22:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-17 22:15 [patch] mm, slab: mark enable_cpucache as init text David Rientjes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox