[JFFS2] Obsolete dirent nodes immediately on unlink, where possible.

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Apr 21 17:59:01 EDT 2007


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=a491486a2087ac3dfc00efb4f838c8d684afaf54
Commit:     a491486a2087ac3dfc00efb4f838c8d684afaf54
Parent:     ec98c681a5355469eee70227b7e0a88f0d688483
Author:     Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
AuthorDate: Fri Mar 16 16:15:45 2007 +0100
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Fri Apr 20 23:09:28 2007 -0400

    [JFFS2] Obsolete dirent nodes immediately on unlink, where possible.
    
    Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 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 6717679..57a79a6 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();



More information about the linux-mtd-cvs mailing list