get rid of nameidata_dentry_drop_rcu() calling nameidata_drop_rcu()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 15 Feb 2011 06:42:59 +0000 (01:42 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 15 Feb 2011 07:26:54 +0000 (02:26 -0500)
can't happen anymore and didn't work right anyway

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c

index 10635d32917591da4c7ed04dc172fc10fa0b0a11..9e701e28a329ac5bd5aa0ab36a4eb0e21aa8076e 100644 (file)
@@ -455,14 +455,6 @@ static int nameidata_dentry_drop_rcu(struct nameidata *nd, struct dentry *dentry
        struct fs_struct *fs = current->fs;
        struct dentry *parent = nd->path.dentry;
 
-       /*
-        * It can be possible to revalidate the dentry that we started
-        * the path walk with. force_reval_path may also revalidate the
-        * dentry already committed to the nameidata.
-        */
-       if (unlikely(parent == dentry))
-               return nameidata_drop_rcu(nd);
-
        BUG_ON(!(nd->flags & LOOKUP_RCU));
        if (nd->root.mnt) {
                spin_lock(&fs->lock);