From: Cyrill Gorcunov Date: Tue, 16 Jun 2009 22:32:32 +0000 (-0700) Subject: mm: setup_per_zone_inactive_ratio - fix comment and make it __init X-Git-Tag: v2.6.31-rc1~299^2~119 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=e9bb35df6f813ca46f8e6273add657643c7df73f;p=~shefty%2Frdma-dev.git mm: setup_per_zone_inactive_ratio - fix comment and make it __init The caller of setup_per_zone_inactive_ratio is an __init function. There is no need to keep the callee after it completed as well. Also fix a comment. Acked-by: David Rientjes Signed-off-by: Cyrill Gorcunov Reviewed-by: Minchan Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index db8c46ffa9f..076463cb21b 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4440,8 +4440,6 @@ void setup_per_zone_pages_min(void) } /** - * setup_per_zone_inactive_ratio - called when min_free_kbytes changes. - * * The inactive anon list should be small enough that the VM never has to * do too much work, but large enough that each inactive page has a chance * to be referenced again before it is swapped out. @@ -4462,7 +4460,7 @@ void setup_per_zone_pages_min(void) * 1TB 101 10GB * 10TB 320 32GB */ -static void setup_per_zone_inactive_ratio(void) +static void __init setup_per_zone_inactive_ratio(void) { struct zone *zone;