Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335565
b: refs/heads/master
c: 3798f47
h: refs/heads/master
i:
  335563: 1dbab74
v: v3
  • Loading branch information
Sachin Prabhu authored and Jeff Layton committed Nov 5, 2012
1 parent 1378eba commit 425ecb0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: 36960e440ccf94349c09fb944930d3bfe4bc473f
refs/heads/master: 3798f47aa276b332c30da499cb4df4577e2f8872
11 changes: 10 additions & 1 deletion trunk/fs/cifs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,16 @@ cifs_atomic_open(struct inode *inode, struct dentry *direntry,
* in network traffic in the other paths.
*/
if (!(oflags & O_CREAT)) {
struct dentry *res = cifs_lookup(inode, direntry, 0);
struct dentry *res;

/*
* Check for hashed negative dentry. We have already revalidated
* the dentry and it is fine. No need to perform another lookup.
*/
if (!d_unhashed(direntry))
return -ENOENT;

res = cifs_lookup(inode, direntry, 0);
if (IS_ERR(res))
return PTR_ERR(res);

Expand Down

0 comments on commit 425ecb0

Please sign in to comment.