aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/backing-dev.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2019-08-26 09:06:52 -0700
committerJens Axboe <axboe@kernel.dk>2019-08-27 09:22:38 -0600
commit5b9cce4c7eb0696558dfd4946074ae1fb9d8f05d (patch)
tree1bfb278d686dad40e79690adc926c07839c46381 /include/linux/backing-dev.h
parentnull_blk: fix inline misuse (diff)
downloadwireguard-linux-5b9cce4c7eb0696558dfd4946074ae1fb9d8f05d.tar.xz
wireguard-linux-5b9cce4c7eb0696558dfd4946074ae1fb9d8f05d.zip
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.h2
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;