summaryrefslogtreecommitdiff
path: root/fs/9p/vfs_addr.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2011-02-28 17:03:56 +0530
committerEric Van Hensbergen <ericvh@gmail.com>2011-03-15 09:57:37 -0500
commit2efda7998bbc50589d28f18fddfb0c44d412128e (patch)
treeaf3d83d0370b8d39b024ff8dbd34051d466bfa2d /fs/9p/vfs_addr.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/vfs_addr.c')
-rw-r--r--fs/9p/vfs_addr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/9p/vfs_addr.c b/fs/9p/vfs_addr.c
index b7f2a8e3863e..637bd703e28c 100644
--- a/fs/9p/vfs_addr.c
+++ b/fs/9p/vfs_addr.c
@@ -151,6 +151,8 @@ static void v9fs_invalidate_page(struct page *page, unsigned long offset)
static int v9fs_launder_page(struct page *page)
{
+ struct inode *inode = page->mapping->host;
+ v9fs_fscache_wait_on_page_write(inode, page);
return 0;
}