summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorYaowei Bai <bywxiaobai@163.com>2015-11-05 18:47:17 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-05 19:34:48 -0800
commit29d06bbb41595f82db309a5516426ef8bd0f27b7 (patch)
treebd405d49de5cd0b9213627b840bcf40e1e8bd095 /mm
parent5d317b2b6536592a9b51fe65faed43d65ca9158e (diff)
downloadop-kernel-dev-29d06bbb41595f82db309a5516426ef8bd0f27b7.zip
op-kernel-dev-29d06bbb41595f82db309a5516426ef8bd0f27b7.tar.gz
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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 7f63a93..773fc8d 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1866,10 +1866,7 @@ static int inactive_anon_is_low_global(struct zone *zone)
active = zone_page_state(zone, NR_ACTIVE_ANON);
inactive = zone_page_state(zone, NR_INACTIVE_ANON);
- if (inactive * zone->inactive_ratio < active)
- return 1;
-
- return 0;
+ return inactive * zone->inactive_ratio < active;
}
/**
OpenPOWER on IntegriCloud