summaryrefslogtreecommitdiffstats
path: root/fs/jffs2/write.c
diff options
context:
space:
mode:
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>2007-03-16 16:15:45 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2007-04-20 23:09:28 -0400
commita491486a2087ac3dfc00efb4f838c8d684afaf54 (patch)
tree1e464d41597184ece141e5a025f55fa1f1548ab8 /fs/jffs2/write.c
parentec98c681a5355469eee70227b7e0a88f0d688483 (diff)
downloadblackbird-op-linux-a491486a2087ac3dfc00efb4f838c8d684afaf54.tar.gz
blackbird-op-linux-a491486a2087ac3dfc00efb4f838c8d684afaf54.zip
[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>
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,
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();
OpenPOWER on IntegriCloud