]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - mm/page-writeback.c
writeback: make laptop_mode_timer_fn() handle multiple bdi_writeback's
authorTejun Heo <tj@kernel.org>
Fri, 22 May 2015 21:13:52 +0000 (17:13 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 2 Jun 2015 14:33:36 +0000 (08:33 -0600)
commita06fd6b102286e3b727ed42b8fb37825fa7127a2
tree8de297e2023740b847e9ec57d8ceb28d550535d2
parentc00ddad39f512b1a81e25b7892217ce10efab0f1
writeback: make laptop_mode_timer_fn() handle multiple bdi_writeback's

For cgroup writeback support, all bdi-wide operations should be
distributed to all its wb's (bdi_writeback's).

This patch updates laptop_mode_timer_fn() so that it invokes
wb_start_writeback() on all wb's rather than just the root one.  As
the intent is writing out all dirty data, there's no reason to split
the number of pages to write.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
mm/page-writeback.c