diff options
author | Yaowei Bai <bywxiaobai@163.com> | 2015-11-05 21:47:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-05 22:34:48 -0500 |
commit | 29d06bbb41595f82db309a5516426ef8bd0f27b7 (patch) | |
tree | bd405d49de5cd0b9213627b840bcf40e1e8bd095 /mm | |
parent | 5d317b2b6536592a9b51fe65faed43d65ca9158e (diff) |
mm/vmscan: make inactive_anon_is_low_global return directly
Delete unnecessary if to let inactive_anon_is_low_global return
directly.
No functional changes.
Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
Acked-by: David Rientjes <rientjes@google.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/vmscan.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 7f63a9381f71..773fc8db75d2 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1866,10 +1866,7 @@ static int inactive_anon_is_low_global(struct zone *zone) | |||
1866 | active = zone_page_state(zone, NR_ACTIVE_ANON); | 1866 | active = zone_page_state(zone, NR_ACTIVE_ANON); |
1867 | inactive = zone_page_state(zone, NR_INACTIVE_ANON); | 1867 | inactive = zone_page_state(zone, NR_INACTIVE_ANON); |
1868 | 1868 | ||
1869 | if (inactive * zone->inactive_ratio < active) | 1869 | return inactive * zone->inactive_ratio < active; |
1870 | return 1; | ||
1871 | |||
1872 | return 0; | ||
1873 | } | 1870 | } |
1874 | 1871 | ||
1875 | /** | 1872 | /** |