diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2011-02-28 17:03:56 +0530 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2011-03-15 09:57:37 -0500 |
commit | 2efda7998bbc50589d28f18fddfb0c44d412128e (patch) | |
tree | af3d83d0370b8d39b024ff8dbd34051d466bfa2d /fs/9p/cache.c | |
parent | 20656a49ef37d8f44ed1e0b47d132197f9628adc (diff) | |
download | linux-3.10-2efda7998bbc50589d28f18fddfb0c44d412128e.tar.gz linux-3.10-2efda7998bbc50589d28f18fddfb0c44d412128e.tar.bz2 linux-3.10-2efda7998bbc50589d28f18fddfb0c44d412128e.zip |
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.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/9p/cache.c b/fs/9p/cache.c index 0dbe0d139ac..610913d42a2 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) if (ret != 0) v9fs_uncache_page(inode, page); } + +/* + * wait for a page to complete writing to the cache + */ +void __v9fs_fscache_wait_on_page_write(struct inode *inode, struct page *page) +{ + const struct v9fs_cookie *vcookie = v9fs_inode2cookie(inode); + P9_DPRINTK(P9_DEBUG_FSC, "inode %p page %p", inode, page); + if (PageFsCache(page)) + fscache_wait_on_page_write(vcookie->fscache, page); +} |