diff options
author | Joakim Tjernlund <Joakim.Tjernlund@transmode.se> | 2007-03-16 11:15:45 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-04-20 23:09:28 -0400 |
commit | a491486a2087ac3dfc00efb4f838c8d684afaf54 (patch) | |
tree | 1e464d41597184ece141e5a025f55fa1f1548ab8 /fs/jffs2/write.c | |
parent | ec98c681a5355469eee70227b7e0a88f0d688483 (diff) |
[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.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, | |||
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(); |