The patch titled Subject: mm/vmscan: make inactive_anon_is_low_global return directly has been added to the -mm tree. Its filename is mm-vmscan-make-inactive_anon_is_low_global-return-directly.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-vmscan-make-inactive_anon_is_low_global-return-directly.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-vmscan-make-inactive_anon_is_low_global-return-directly.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Yaowei Bai <bywxiaobai@xxxxxxx> Subject: 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@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/vmscan.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff -puN mm/vmscan.c~mm-vmscan-make-inactive_anon_is_low_global-return-directly mm/vmscan.c --- a/mm/vmscan.c~mm-vmscan-make-inactive_anon_is_low_global-return-directly +++ a/mm/vmscan.c @@ -1866,10 +1866,7 @@ static int inactive_anon_is_low_global(s 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; } /** _ Patches currently in -mm which might be from bywxiaobai@xxxxxxx are mm-page_alloc-remove-unused-parameter-in-init_currently_empty_zone.patch mm-vmscan-make-inactive_anon_is_low_global-return-directly.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html