aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/9p/cache.c')
-rw-r--r--fs/9p/cache.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/9p/cache.c b/fs/9p/cache.c
index 0dbe0d139ac2..610913d42a28 100644
--- a/fs/9p/cache.c
+++ b/fs/9p/cache.c
@@ -461,3 +461,14 @@ void __v9fs_readpage_to_fscache(struct inode *inode, struct page *page)
461 if (ret != 0) 461 if (ret != 0)
462 v9fs_uncache_page(inode, page); 462 v9fs_uncache_page(inode, page);
463} 463}
464
465/*
466 * wait for a page to complete writing to the cache
467 */
468void __v9fs_fscache_wait_on_page_write(struct inode *inode, struct page *page)
469{
470 const struct v9fs_cookie *vcookie = v9fs_inode2cookie(inode);
471 P9_DPRINTK(P9_DEBUG_FSC, "inode %p page %p", inode, page);
472 if (PageFsCache(page))
473 fscache_wait_on_page_write(vcookie->fscache, page);
474}