The patch titled Subject: mm: vmscan: count only dirty pages as congested has been added to the -mm tree. Its filename is mm-vmscan-count-only-dirty-pages-as-congested.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-vmscan-count-only-dirty-pages-as-congested.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-vmscan-count-only-dirty-pages-as-congested.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: Jamie Liu <jamieliu@xxxxxxxxxx> Subject: mm: vmscan: count only dirty pages as congested shrink_page_list() counts all pages with a mapping, including clean pages, toward nr_congested if they're on a write-congested BDI. shrink_inactive_list() then sets ZONE_CONGESTED if nr_dirty == nr_congested. Fix this apples-to-oranges comparison by only counting pages for nr_congested if they count for nr_dirty. Signed-off-by: Jamie Liu <jamieliu@xxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Mel Gorman <mgorman@xxxxxxx> Cc: Greg Thelen <gthelen@xxxxxxxxxx> Cc: Hugh Dickins <hughd@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/vmscan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN mm/vmscan.c~mm-vmscan-count-only-dirty-pages-as-congested mm/vmscan.c --- a/mm/vmscan.c~mm-vmscan-count-only-dirty-pages-as-congested +++ a/mm/vmscan.c @@ -874,7 +874,8 @@ static unsigned long shrink_page_list(st * end of the LRU a second time. */ mapping = page_mapping(page); - if ((mapping && bdi_write_congested(mapping->backing_dev_info)) || + if (((dirty || writeback) && mapping && + bdi_write_congested(mapping->backing_dev_info)) || (writeback && PageReclaim(page))) nr_congested++; _ Patches currently in -mm which might be from jamieliu@xxxxxxxxxx are origin.patch mm-vmscan-count-only-dirty-pages-as-congested.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