Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46073
b: refs/heads/master
c: df1d5d2
h: refs/heads/master
i:
  46071: e7250a7
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Feb 3, 2007
1 parent b4eb5ed commit 013d743
Show file tree
Hide file tree
Showing 2 changed files with 9 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: ccfeb506231348a3c60ab0fdb5753a574653e3c0
refs/heads/master: df1d5d23d3a1a713c69b0f9ec67c59aeca3ce6b3
10 changes: 8 additions & 2 deletions trunk/fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1123,8 +1123,14 @@ static struct dentry *nfs_readdir_lookup(nfs_readdir_descriptor_t *desc)
}
name.hash = full_name_hash(name.name, name.len);
dentry = d_lookup(parent, &name);
if (dentry != NULL)
return dentry;
if (dentry != NULL) {
/* Is this a positive dentry? */
if (dentry->d_inode != NULL)
return dentry;
/* No, so d_drop to allow one to be created */
d_drop(dentry);
dput(dentry);
}
if (!desc->plus || !(entry->fattr->valid & NFS_ATTR_FATTR))
return NULL;
/* Note: caller is already holding the dir->i_mutex! */
Expand Down

0 comments on commit 013d743

Please sign in to comment.