linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [patch] mm, slub: mark resiliency_test as init text
@ 2014-06-17 22:16 David Rientjes
  2014-06-19 20:34 ` Christoph Lameter
  0 siblings, 1 reply; 2+ messages in thread
From: David Rientjes @ 2014-06-17 22:16 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Christoph Lameter, Pekka Enberg, Joonsoo Kim, linux-mm

resiliency_test() 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/slub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/slub.c b/mm/slub.c
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -4207,7 +4207,7 @@ static int list_locations(struct kmem_cache *s, char *buf,
 #endif
 
 #ifdef SLUB_RESILIENCY_TEST
-static void resiliency_test(void)
+static void __init resiliency_test(void)
 {
 	u8 *p;
 

--
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] 2+ messages in thread

* Re: [patch] mm, slub: mark resiliency_test as init text
  2014-06-17 22:16 [patch] mm, slub: mark resiliency_test as init text David Rientjes
@ 2014-06-19 20:34 ` Christoph Lameter
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Lameter @ 2014-06-19 20:34 UTC (permalink / raw)
  To: David Rientjes; +Cc: Andrew Morton, Pekka Enberg, Joonsoo Kim, linux-mm

On Tue, 17 Jun 2014, David Rientjes wrote:

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

Acked-by: Christoph Lameter <cl@linux.com>

--
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] 2+ messages in thread

end of thread, other threads:[~2014-06-19 20:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-17 22:16 [patch] mm, slub: mark resiliency_test as init text David Rientjes
2014-06-19 20:34 ` Christoph Lameter

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