aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/vfs_inode.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2011-02-28 06:34:09 -0500
committerEric Van Hensbergen <ericvh@gmail.com>2011-03-15 10:57:42 -0400
commitc06c066a083aa0a336d6b2b1ed502dd0b8488ac7 (patch)
tree6bd0578a96b49e8c2b8aff619d2176e505161f25 /fs/9p/vfs_inode.c
parente0459f57b8b3bbabf6f11f73da4d17abb0c159de (diff)
fs/9p: Properly update inode attributes on link
With caching enabled, we need to make sure we don't update inode->i_size via stat2inode because we could have dirty data which is not yet written to the server 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.c')
-rw-r--r--fs/9p/vfs_inode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index 8e9d60345bc8..524d255a5748 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -1292,8 +1292,10 @@ v9fs_vfs_link(struct dentry *old_dentry, struct inode *dir,
1292 sprintf(name, "%d\n", oldfid->fid); 1292 sprintf(name, "%d\n", oldfid->fid);
1293 retval = v9fs_vfs_mkspecial(dir, dentry, P9_DMLINK, name); 1293 retval = v9fs_vfs_mkspecial(dir, dentry, P9_DMLINK, name);
1294 __putname(name); 1294 __putname(name);
1295 if (!retval) 1295 if (!retval) {
1296 v9fs_refresh_inode(oldfid, old_dentry->d_inode);
1296 v9fs_invalidate_inode_attr(dir); 1297 v9fs_invalidate_inode_attr(dir);
1298 }
1297clunk_fid: 1299clunk_fid:
1298 p9_client_clunk(oldfid); 1300 p9_client_clunk(oldfid);
1299 return retval; 1301 return retval;