|
@@ -874,7 +874,8 @@ static unsigned long shrink_page_list(struct list_head *page_list,
|
|
* end of the LRU a second time.
|
|
* end of the LRU a second time.
|
|
*/
|
|
*/
|
|
mapping = page_mapping(page);
|
|
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)))
|
|
(writeback && PageReclaim(page)))
|
|
nr_congested++;
|
|
nr_congested++;
|
|
|
|
|