author | Aneesh Kumar K.V
<aneesh.kumar@linux.vnet.ibm.com> 2010-05-14 13:04:39 UTC |
committer | Eric Van Hensbergen
<ericvh@gmail.com> 2010-05-22 17:34:11 UTC |
parent | 4681dbdacb5cdc4d3273c3a97a1858d6e00a5fe7 |
fs/9p/vfs_inode.c | +4 | -3 |
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index de9a39590b7..b44c9997914 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -697,8 +697,8 @@ static struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry, if (IS_ERR(fid)) { result = PTR_ERR(fid); if (result == -ENOENT) { - d_add(dentry, NULL); - return NULL; + inode = NULL; + goto inst_out; } return ERR_PTR(result); @@ -715,7 +715,8 @@ static struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry, if (result < 0) goto error; - if ((fid->qid.version) && (v9ses->cache)) +inst_out: + if (v9ses->cache) dentry->d_op = &v9fs_cached_dentry_operations; else dentry->d_op = &v9fs_dentry_operations;