Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
b=22342 more sanity check for same dentry.
[fs/lustre-release.git]
/
lustre
/
llite
/
statahead.c
diff --git
a/lustre/llite/statahead.c
b/lustre/llite/statahead.c
index
bd76343
..
503235a
100644
(file)
--- a/
lustre/llite/statahead.c
+++ b/
lustre/llite/statahead.c
@@
-1094,7
+1094,9
@@
static int is_same_dentry(struct dentry *d1, struct dentry *d2)
{
if (unlikely(d1 == d2))
return 1;
- if (d1->d_name.len == d2->d_name.len &&
+ if (d1->d_parent == d2->d_parent &&
+ d1->d_name.hash == d2->d_name.hash &&
+ d1->d_name.len == d2->d_name.len &&
memcmp(d1->d_name.name, d2->d_name.name, d1->d_name.len) == 0)
return 1;
return 0;