aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/backing-dev.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2017-09-28 11:28:02 -0600
committerJens Axboe <axboe@kernel.dk>2017-10-03 08:38:17 -0600
commit0ab29fd0accf6e5b6ef5dbe2e0335da6687ce60c (patch)
treef76ff2360a128f87ff4bc4e76efe65a2d88738b8 /include/linux/backing-dev.h
parentwriteback: provide a wakeup_flusher_threads_bdi() (diff)
downloadwireguard-linux-0ab29fd0accf6e5b6ef5dbe2e0335da6687ce60c.tar.xz
wireguard-linux-0ab29fd0accf6e5b6ef5dbe2e0335da6687ce60c.zip
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>
Diffstat (limited to 'include/linux/backing-dev.h')
0 files changed, 0 insertions, 0 deletions