diff options
author | Tejun Heo <tj@kernel.org> | 2019-08-26 19:06:52 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-08-27 18:22:38 +0300 |
commit | 5b9cce4c7eb0696558dfd4946074ae1fb9d8f05d (patch) | |
tree | 1bfb278d686dad40e79690adc926c07839c46381 /include/linux/backing-dev.h | |
parent | 38b4e09fbccab6457536563823222921c49601bb (diff) | |
download | linux-5b9cce4c7eb0696558dfd4946074ae1fb9d8f05d.tar.xz |
writeback: Generalize and expose wb_completion
wb_completion is used to track writeback completions. We want to use
it from memcg side for foreign inode flushes. This patch updates it
to remember the target waitq instead of assuming bdi->wb_waitq and
expose it outside of fs-writeback.c.
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/backing-dev.h')
-rw-r--r-- | include/linux/backing-dev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h index 35b31d176f74..02650b1253a2 100644 --- a/include/linux/backing-dev.h +++ b/include/linux/backing-dev.h @@ -44,6 +44,8 @@ void wb_start_background_writeback(struct bdi_writeback *wb); void wb_workfn(struct work_struct *work); void wb_wakeup_delayed(struct bdi_writeback *wb); +void wb_wait_for_completion(struct wb_completion *done); + extern spinlock_t bdi_lock; extern struct list_head bdi_list; |