Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360720
b: refs/heads/master
c: a3b2157
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Feb 28, 2013
1 parent 1635e16 commit 9083c59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 7b5be621993567d39f09a5190c4d651241be296f
refs/heads/master: a3b2157e72e321fa313389ac744bbf6d6cb6986d
7 changes: 5 additions & 2 deletions trunk/fs/9p/vfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,6 @@ struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
p9_client_clunk(fid);
return ERR_CAST(inode);
}
v9fs_fid_add(dentry, fid);
/*
* If we had a rename on the server and a parallel lookup
* for the new name, then make sure we instantiate with
Expand All @@ -833,7 +832,11 @@ struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
* k/b.
*/
res = d_materialise_unique(dentry, inode);
if (IS_ERR(res))
if (!res)
v9fs_fid_add(dentry, fid);
else if (!IS_ERR(res))
v9fs_fid_add(res, fid);
else
p9_client_clunk(fid);
return res;
}
Expand Down

0 comments on commit 9083c59

Please sign in to comment.