[PKT_SCHED] HTB: initialize upper bound properly
[firefly-linux-kernel-4.4.55.git] / fs / dcache.c
index bec4de176c811f815a1f1668662a21c7ef1d6728..1b4a3a34ec57f20d605386c129c9ebf315dd1765 100644 (file)
@@ -1339,10 +1339,10 @@ void d_move(struct dentry * dentry, struct dentry * target)
         */
        if (target < dentry) {
                spin_lock(&target->d_lock);
-               spin_lock(&dentry->d_lock);
+               spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
        } else {
                spin_lock(&dentry->d_lock);
-               spin_lock(&target->d_lock);
+               spin_lock_nested(&target->d_lock, DENTRY_D_LOCK_NESTED);
        }
 
        /* Move the dentry to the target hash queue, if on different bucket */