diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2011-02-28 06:34:07 -0500 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2011-03-15 10:57:41 -0400 |
commit | 3bc86de317f9e0edbbae142c9a5490a2eca517ce (patch) | |
tree | f6882ecf422681498cc7c69cb1103626f618bc9a /fs/9p/vfs_inode_dotl.c | |
parent | b3cbea03b4edbd6b625dbf813bf8c30c22213cb7 (diff) |
fs/9p: mark inode attribute invalid on rename, unlink and setattr
rename, unlink and setattr can result in update of inode attribute.
So mark the cached copy invalid
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_inode_dotl.c')
-rw-r--r-- | fs/9p/vfs_inode_dotl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c index 5c04d66afb1d..8d5f7e328631 100644 --- a/fs/9p/vfs_inode_dotl.c +++ b/fs/9p/vfs_inode_dotl.c | |||
@@ -455,6 +455,7 @@ int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr) | |||
455 | if (retval < 0) | 455 | if (retval < 0) |
456 | return retval; | 456 | return retval; |
457 | 457 | ||
458 | v9fs_invalidate_inode_attr(dentry->d_inode); | ||
458 | if ((iattr->ia_valid & ATTR_SIZE) && | 459 | if ((iattr->ia_valid & ATTR_SIZE) && |
459 | iattr->ia_size != i_size_read(dentry->d_inode)) { | 460 | iattr->ia_size != i_size_read(dentry->d_inode)) { |
460 | retval = vmtruncate(dentry->d_inode, iattr->ia_size); | 461 | retval = vmtruncate(dentry->d_inode, iattr->ia_size); |