]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mm/vmscan: make inactive_anon_is_low_global return directly
authorYaowei Bai <bywxiaobai@163.com>
Wed, 21 Oct 2015 22:03:02 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:02 +0000 (09:03 +1100)
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>
mm/vmscan.c

index 7f63a9381f71ebbb0c1f9bdda94a913c930280f0..773fc8db75d256cb74e34e67c351a92014155963 100644 (file)
@@ -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;
 }
 
 /**