patch-2.2.0-pre5 linux/fs/nfs/inode.c

Next file: linux/fs/ntfs/ntfsendian.h
Previous file: linux/fs/lockd/clntlock.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre4/linux/fs/nfs/inode.c linux/fs/nfs/inode.c
@@ -474,7 +474,7 @@
 	 * unhashed inode to avoid aliasing problems.
 	 */
 	if ((dentry->d_parent->d_inode->u.nfs_i.flags & NFS_IS_SNAPSHOT) ||
-	    (IS_ROOT(dentry->d_parent) && dentry->d_name.len == 9 &&
+	    (dentry->d_name.len == 9 &&
 	     memcmp(dentry->d_name.name, ".snapshot", 9) == 0)) {
 		struct inode *inode = get_empty_inode();
 		if (!inode)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov