aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2')
-rw-r--r--fs/ocfs2/dcache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ocfs2/dcache.c b/fs/ocfs2/dcache.c
index a40edc1e1d86..af4488268e49 100644
--- a/fs/ocfs2/dcache.c
+++ b/fs/ocfs2/dcache.c
@@ -170,10 +170,11 @@ struct dentry *ocfs2_find_local_alias(struct inode *inode,
170 u64 parent_blkno, 170 u64 parent_blkno,
171 int skip_unhashed) 171 int skip_unhashed)
172{ 172{
173 struct hlist_node *p;
173 struct dentry *dentry; 174 struct dentry *dentry;
174 175
175 spin_lock(&inode->i_lock); 176 spin_lock(&inode->i_lock);
176 list_for_each_entry(dentry, &inode->i_dentry, d_alias) { 177 hlist_for_each_entry(dentry, p, &inode->i_dentry, d_alias) {
177 spin_lock(&dentry->d_lock); 178 spin_lock(&dentry->d_lock);
178 if (ocfs2_match_dentry(dentry, parent_blkno, skip_unhashed)) { 179 if (ocfs2_match_dentry(dentry, parent_blkno, skip_unhashed)) {
179 trace_ocfs2_find_local_alias(dentry->d_name.len, 180 trace_ocfs2_find_local_alias(dentry->d_name.len,