aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/cache.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2011-02-28 06:33:56 -0500
committerEric Van Hensbergen <ericvh@gmail.com>2011-03-15 10:57:37 -0400
commit2efda7998bbc50589d28f18fddfb0c44d412128e (patch)
treeaf3d83d0370b8d39b024ff8dbd34051d466bfa2d /fs/9p/cache.c
parent20656a49ef37d8f44ed1e0b47d132197f9628adc (diff)
fs/9p: [fscache] wait for page write in cached mode
We need to call fscache_wait_on_page_write in launder_page for fscache Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
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}