OSDN Git Service

autofs4: don't bother with d_instantiate(dentry, NULL) in ->lookup()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 7 Mar 2016 20:10:45 +0000 (15:10 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 14 Mar 2016 04:16:00 +0000 (00:16 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/autofs4/root.c

index c6d7d3d..75dd739 100644 (file)
@@ -537,8 +537,6 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, u
                ino->dentry = dentry;
 
                autofs4_add_active(dentry);
-
-               d_instantiate(dentry, NULL);
        }
        return NULL;
 }