Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198101
b: refs/heads/master
c: 85e0df2
h: refs/heads/master
i:
  198099: d39e1e2
v: v3
  • Loading branch information
Aneesh Kumar K.V authored and Eric Van Hensbergen committed May 22, 2010
1 parent 506695f commit 1dd1d6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4681dbdacb5cdc4d3273c3a97a1858d6e00a5fe7
refs/heads/master: 85e0df240e9376ff58eb1a50d9854f5f176dd297
7 changes: 4 additions & 3 deletions trunk/fs/9p/vfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit 1dd1d6d

Please sign in to comment.