ocfs2: prune the dcache before deleting the dentry of directory
[cascardo/linux.git] / fs / ocfs2 / dlmglue.c
index 1c423af..11849a4 100644 (file)
@@ -3750,6 +3750,9 @@ static int ocfs2_dentry_convert_worker(struct ocfs2_lock_res *lockres,
                        break;
                spin_unlock(&dentry_attach_lock);
 
+               if (S_ISDIR(dl->dl_inode->i_mode))
+                       shrink_dcache_parent(dentry);
+
                mlog(0, "d_delete(%pd);\n", dentry);
 
                /*