writeback: make wakeup_flusher_threads() handle multiple bdi_writeback's
authorTejun Heo <tj@kernel.org>
Fri, 22 May 2015 21:13:55 +0000 (17:13 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 2 Jun 2015 14:33:36 +0000 (08:33 -0600)
commitf2b65121607631df0753eedd624262818707af32
tree1ba12510e26cca8f250161d6882443178417da7e
parent9ecf4866c018aeb304a7b49216c4d183665becb7
writeback: make wakeup_flusher_threads() handle multiple bdi_writeback's

wakeup_flusher_threads() currently only starts writeback on the root
wb (bdi_writeback).  For cgroup writeback support, update the function
to wake up all wbs and distribute the number of pages to write
according to the proportion of each wb's write bandwidth, which is
implemented in wb_split_bdi_pages().

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>
fs/fs-writeback.c