arm: omap2plus: GPIO cleanup
[firefly-linux-kernel-4.4.55.git] / fs / dcache.c
index ad25c4cec7d50a7185459609bf6e5f63b9e9dcbd..129a357309946291b62f670e4ebdf978c7d8b947 100644 (file)
@@ -2131,7 +2131,7 @@ EXPORT_SYMBOL(d_rehash);
  */
 void dentry_update_name_case(struct dentry *dentry, struct qstr *name)
 {
-       BUG_ON(!mutex_is_locked(&dentry->d_inode->i_mutex));
+       BUG_ON(!mutex_is_locked(&dentry->d_parent->d_inode->i_mutex));
        BUG_ON(dentry->d_name.len != name->len); /* d_lookup gives this */
 
        spin_lock(&dentry->d_lock);