On Wed, 15 Oct 2014 12:58:35 -0700 Jamie Liu <jamieliu@xxxxxxxxxx> wrote: > 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. > > ... > > --- a/mm/vmscan.c > +++ b/mm/vmscan.c > @@ -875,7 +875,8 @@ static unsigned long shrink_page_list(struct list_head *page_list, > * 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++; What are the observed runtime effects of this change? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>