Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Aneesh Kumar K.V and committed by
Eric Van Hensbergen
23b08e97 d28c61f0

+5
+5
fs/9p/vfs_inode.c
··· 884 884 clear_nlink(new_inode); 885 885 else 886 886 drop_nlink(new_inode); 887 + /* 888 + * Work around vfs rename rehash bug with 889 + * FS_RENAME_DOES_D_MOVE 890 + */ 891 + v9fs_invalidate_inode_attr(new_inode); 887 892 } 888 893 if (S_ISDIR(old_inode->i_mode)) { 889 894 if (!new_inode)