aboutsummaryrefslogtreecommitdiff
path: root/fs/9p/cache.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-01-26 10:55:41 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-26 10:55:41 -0800
commit1c2948380b699dfdbb25a7de740392dd9e6f0613 (patch)
treef1a9fc2903c0cc85b24dd2fb279f89597976670d /fs/9p/cache.c
parentb2e448eca1a52fea181905845728ae00a138d84e (diff)
parentb871866e4aa3f44b10f0f0ce004cc4635c2e58a5 (diff)
Merge tag 'for-3.14-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs
Pull 9p changes from Eric Van Hensbergen: "Included are a new cache model for support of mmap, and several cleanups across the filesystem and networking portions of the code" * tag 'for-3.14-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs: 9p: update documentation 9P: introduction of a new cache=mmap model. net/9p: remove virtio default hack and set appropriate bits instead 9p: remove useless 'name' variable and assignment 9p: fix return value in case in v9fs_fid_xattr_set() 9p: remove useless variable and assignment 9p: remove useless assignment 9p: remove unused 'super_block' struct pointer 9p: remove never used return variable 9p: remove unused 'p9_fid' struct pointer 9p: remove unused 'p9_client' struct pointer
Diffstat (limited to 'fs/9p/cache.c')
-rw-r--r--fs/9p/cache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/9p/cache.c b/fs/9p/cache.c
index 2b7a032c37b..a69260f2755 100644
--- a/fs/9p/cache.c
+++ b/fs/9p/cache.c
@@ -239,13 +239,12 @@ void v9fs_cache_inode_flush_cookie(struct inode *inode)
void v9fs_cache_inode_set_cookie(struct inode *inode, struct file *filp)
{
struct v9fs_inode *v9inode = V9FS_I(inode);
- struct p9_fid *fid;
if (!v9inode->fscache)
return;
spin_lock(&v9inode->fscache_lock);
- fid = filp->private_data;
+
if ((filp->f_flags & O_ACCMODE) != O_RDONLY)
v9fs_cache_inode_flush_cookie(inode);
else