writeback: pass in '0' for nr_pages writeback in laptop mode
authorJens Axboe <axboe@kernel.dk>
Thu, 28 Sep 2017 17:28:02 +0000 (11:28 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Oct 2017 14:38:17 +0000 (08:38 -0600)
commit0ab29fd0accf6e5b6ef5dbe2e0335da6687ce60c
treef76ff2360a128f87ff4bc4e76efe65a2d88738b8
parent595043e5f9ef1d8263bd9fda215cade489227491
writeback: pass in '0' for nr_pages writeback in laptop mode

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.

Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Tested-by: Chris Mason <clm@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/page-writeback.c