exfat: move free cluster out of exfat_init_ext_entry()
[linux-block.git] / fs / exfat / dir.c
index 599dc81c9a08362e980f67a5b059e8926a3c1b28..0008d4681d293ef104fd7d1d44c6890fcd86c817 100644 (file)
@@ -564,9 +564,6 @@ int exfat_init_ext_entry(struct inode *inode, struct exfat_chain *p_dir,
                if (!ep)
                        return -EIO;
 
-               if (exfat_get_entry_type(ep) & TYPE_BENIGN_SEC)
-                       exfat_free_benign_secondary_clusters(inode, ep);
-
                exfat_init_name_entry(ep, uniname);
                exfat_update_bh(bh, sync);
                brelse(bh);