fs/9p: Make sure we properly instantiate dentry.
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Fri, 14 May 2010 13:04:39 +0000 (13:04 +0000)
committerEric Van Hensbergen <ericvh@gmail.com>
Sat, 22 May 2010 17:34:11 +0000 (12:34 -0500)
For lookup if we get ENOENT error from the server we still
instantiate the dentry. We need to make sure we have dentry
operations set in that case so that a later dput on the dentry
does the expected. Without the patch we get the below error

#ln  -sf abc abclink
ln: creating symbolic link `abclink': No such file or directory

Now on the host do
$ touch abclink

Guest now gives ENOENT error.
# ls
ls: cannot access abclink: No such file or directory

Debugged-by:Gautham R Shenoy <ego@in.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>

No differences found