Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23502
b: refs/heads/master
c: 214fda1
h: refs/heads/master
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed Mar 25, 2006
1 parent 3281e0e commit 87ee727
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: 7d99b7d634d81bb372e03e4561c80430aa4cfac2
refs/heads/master: 214fda1f6e1b8ef2a5292b0372744037fc80d318
11 changes: 7 additions & 4 deletions trunk/fs/dcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,13 @@ static struct dentry * __d_find_alias(struct inode *inode, int want_discon)

struct dentry * d_find_alias(struct inode *inode)
{
struct dentry *de;
spin_lock(&dcache_lock);
de = __d_find_alias(inode, 0);
spin_unlock(&dcache_lock);
struct dentry *de = NULL;

if (!list_empty(&inode->i_dentry)) {
spin_lock(&dcache_lock);
de = __d_find_alias(inode, 0);
spin_unlock(&dcache_lock);
}
return de;
}

Expand Down

0 comments on commit 87ee727

Please sign in to comment.