On 01/21/2016 02:43 PM, Andrey Ryabinin wrote:
> + /*
> + * We start background writeout at the lower ub_background_thresh,
> + * to keep the amount of dirty memory low.
> + */
> + if (!laptop_mode && ub_dirty > ub_background_thresh)
Ugh... Should be:
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 6bf5419..64a64f3 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -1481,7 +1481,7 @@ static void balance_dirty_pages_ub(struct address_space
*mapping,
* We start background writeout at the lower ub_background_thresh,
* to keep the amount of dirty memory low.
*/
- if (!laptop_mode && ub_dirty > ub_background_thresh)
+ if (ub_dirty > ub_background_thresh)
bdi_start_background_writeback(bdi);
}
> + bdi_start_background_writeback(bdi);
> +}
> +
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel