aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index bce851dc03ef..be2bea834bf4 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -553,7 +553,7 @@ again:
553 } 553 }
554 rcu_read_unlock(); 554 rcu_read_unlock();
555 if (parent != dentry) 555 if (parent != dentry)
556 spin_lock(&dentry->d_lock); 556 spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
557 else 557 else
558 parent = NULL; 558 parent = NULL;
559 return parent; 559 return parent;