diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index e93a7ae467c996644a189d5b73d4d538459dd758..62d8d4acb8bbbe75ba0965214808c259c4b1b292 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c @@ -195,6 +195,8 @@ static int autofs4_dir_open(struct inode *inode, struct file *file) if (!empty) d_invalidate(dentry); + nd.dentry = dentry; + nd.mnt = mnt; nd.flags = LOOKUP_DIRECTORY; status = (dentry->d_op->d_revalidate)(dentry, &nd);