writeback: remove bdi_start_writeback()
bdi_start_writeback() is a thin wrapper on top of __wb_start_writeback() which is used only by laptop_mode_timer_fn(). This patches removes bdi_start_writeback(), renames __wb_start_writeback() to wb_start_writeback() and makes laptop_mode_timer_fn() use it instead. This doesn't cause any functional difference and will ease making laptop_mode_timer_fn() cgroup writeback aware. 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>
This commit is contained in:
@@ -1729,8 +1729,8 @@ void laptop_mode_timer_fn(unsigned long data)
|
||||
* threshold
|
||||
*/
|
||||
if (bdi_has_dirty_io(&q->backing_dev_info))
|
||||
bdi_start_writeback(&q->backing_dev_info, nr_pages,
|
||||
WB_REASON_LAPTOP_TIMER);
|
||||
wb_start_writeback(&q->backing_dev_info.wb, nr_pages, true,
|
||||
WB_REASON_LAPTOP_TIMER);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user