writeback: make writeback_in_progress() take bdi_writeback instead of backing_dev_info
authorTejun Heo <tj@kernel.org>
Fri, 22 May 2015 21:13:53 +0000 (17:13 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 2 Jun 2015 14:33:36 +0000 (08:33 -0600)
commitbc05873dccd27d75d6acdf812c3edfb181f1ba17
treee281a65c0688c6d4987ea621263dc69d99d51bd2
parenta06fd6b102286e3b727ed42b8fb37825fa7127a2
writeback: make writeback_in_progress() take bdi_writeback instead of backing_dev_info

writeback_in_progress() currently takes @bdi and returns whether
writeback is in progress on its root wb (bdi_writeback).  In
preparation for cgroup writeback support, make it take wb instead.
While at it, make it an inline function.

This patch doesn't make any functional difference.

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
include/linux/backing-dev.h
mm/page-writeback.c