]> err.no Git - linux-2.6/blobdiff - fs/jffs2/write.c
[JFFS2] Obsolete dirent nodes immediately on unlink, where possible.
[linux-2.6] / fs / jffs2 / write.c
index 67176792e138e8e7a3cbeb5efeaf423d600eaf05..57a79a6ba3d92b6bb6e9de2a01b06b68bce39b6f 100644 (file)
@@ -507,8 +507,7 @@ int jffs2_do_unlink(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f,
        uint32_t alloclen;
        int ret;
 
-       if (1 /* alternative branch needs testing */ ||
-           !jffs2_can_mark_obsolete(c)) {
+       if (!jffs2_can_mark_obsolete(c)) {
                /* We can't mark stuff obsolete on the medium. We need to write a deletion dirent */
 
                rd = jffs2_alloc_raw_dirent();