Re: [PATCH 3/6] page-writeback: pass in '0' for nr_pages writeback in laptop mode

From: Johannes Weiner
Date: Tue Sep 19 2017 - 16:06:48 EST


On Tue, Sep 19, 2017 at 01:53:04PM -0600, Jens Axboe wrote:
> Laptop mode really wants to writeback the number of dirty
> pages and inodes. Instead of calculating this in the caller,
> just pass in 0 and let wakeup_flusher_threads() handle it.
>
> Use the new wakeup_flusher_threads_bdi() instead of rolling
> our own.
>
> Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>