[Devel] [PATCH v4 rh7 2/3] mm/page-writeback: Introduce per-CT dirty memory limit.
Andrey Ryabinin
aryabinin at virtuozzo.com
Thu Jan 21 03:49:18 PST 2016
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);
> +}
> +
More information about the Devel
mailing list