diff options
author | Joakim Tjernlund <Joakim.Tjernlund@transmode.se> | 2007-03-16 16:15:45 +0100 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-04-20 23:09:28 -0400 |
commit | a491486a2087ac3dfc00efb4f838c8d684afaf54 (patch) | |
tree | 1e464d41597184ece141e5a025f55fa1f1548ab8 | |
parent | ec98c681a5355469eee70227b7e0a88f0d688483 (diff) | |
download | linux-a491486a2087ac3dfc00efb4f838c8d684afaf54.tar.bz2 |
[JFFS2] Obsolete dirent nodes immediately on unlink, where possible.
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
-rw-r--r-- | fs/jffs2/write.c | 3 |
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, 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(); |