From: Aneesh Kumar K.V Date: Mon, 28 Feb 2011 11:34:08 +0000 (+0530) Subject: fs/9p: Workaround vfs rename rehash bug X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=23b08e97f2c0d68c2a46a11e4fd8a4686d7351ee;p=deliverable%2Flinux.git fs/9p: Workaround vfs rename rehash bug This is similar to what ceph, ocfs2 and nfs does http://kerneltrap.org/mailarchive/linux-fsdevel/2008/4/18/1498534 May be we should get vfs fixed Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen --- diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index c072bb97e957..8e9d60345bc8 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -884,6 +884,11 @@ clunk_newdir: clear_nlink(new_inode); else drop_nlink(new_inode); + /* + * Work around vfs rename rehash bug with + * FS_RENAME_DOES_D_MOVE + */ + v9fs_invalidate_inode_attr(new_inode); } if (S_ISDIR(old_inode->i_mode)) { if (!new_inode)