aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/jffs2/write.c')
-rw-r--r--fs/jffs2/write.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jffs2/write.c b/fs/jffs2/write.c
index 67176792e138..57a79a6ba3d9 100644
--- a/fs/jffs2/write.c
+++ b/fs/jffs2/write.c
@@ -507,8 +507,7 @@ int jffs2_do_unlink(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f,
507 uint32_t alloclen; 507 uint32_t alloclen;
508 int ret; 508 int ret;
509 509
510 if (1 /* alternative branch needs testing */ || 510 if (!jffs2_can_mark_obsolete(c)) {
511 !jffs2_can_mark_obsolete(c)) {
512 /* We can't mark stuff obsolete on the medium. We need to write a deletion dirent */ 511 /* We can't mark stuff obsolete on the medium. We need to write a deletion dirent */
513 512
514 rd = jffs2_alloc_raw_dirent(); 513 rd = jffs2_alloc_raw_dirent();