aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@openvz.org>2009-06-16 18:32:32 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-16 22:47:39 -0400
commite9bb35df6f813ca46f8e6273add657643c7df73f (patch)
tree64fa88ebc6cda54726522252217f279da4bd516b /mm
parent5c87eada68fe5d29a5f67528f81b6e45124f579b (diff)
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 <rientjes@google.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Reviewed-by: Minchan Kim <minchan.kim@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/page_alloc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index db8c46ffa9f5..076463cb21ba 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -4440,8 +4440,6 @@ void setup_per_zone_pages_min(void)
4440} 4440}
4441 4441
4442/** 4442/**
4443 * setup_per_zone_inactive_ratio - called when min_free_kbytes changes.
4444 *
4445 * The inactive anon list should be small enough that the VM never has to 4443 * The inactive anon list should be small enough that the VM never has to
4446 * do too much work, but large enough that each inactive page has a chance 4444 * do too much work, but large enough that each inactive page has a chance
4447 * to be referenced again before it is swapped out. 4445 * to be referenced again before it is swapped out.
@@ -4462,7 +4460,7 @@ void setup_per_zone_pages_min(void)
4462 * 1TB 101 10GB 4460 * 1TB 101 10GB
4463 * 10TB 320 32GB 4461 * 10TB 320 32GB
4464 */ 4462 */
4465static void setup_per_zone_inactive_ratio(void) 4463static void __init setup_per_zone_inactive_ratio(void)
4466{ 4464{
4467 struct zone *zone; 4465 struct zone *zone;
4468 4466