Commit e9bb35df authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Linus Torvalds

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: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarCyrill Gorcunov <gorcunov@openvz.org>
Reviewed-by: default avatarMinchan Kim <minchan.kim@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5c87eada
...@@ -4440,8 +4440,6 @@ void setup_per_zone_pages_min(void) ...@@ -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 * 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 * do too much work, but large enough that each inactive page has a chance
* to be referenced again before it is swapped out. * to be referenced again before it is swapped out.
...@@ -4462,7 +4460,7 @@ void setup_per_zone_pages_min(void) ...@@ -4462,7 +4460,7 @@ void setup_per_zone_pages_min(void)
* 1TB 101 10GB * 1TB 101 10GB
* 10TB 320 32GB * 10TB 320 32GB
*/ */
static void setup_per_zone_inactive_ratio(void) static void __init setup_per_zone_inactive_ratio(void)
{ {
struct zone *zone; struct zone *zone;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment