public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] Obsolete nodes that are unlinked when possible
@ 2007-03-16 15:45 Joakim Tjernlund
  2007-03-16 16:14 ` Joakim Tjernlund
  2007-04-19 19:34 ` Joakim Tjernlund
  0 siblings, 2 replies; 10+ messages in thread
From: Joakim Tjernlund @ 2007-03-16 15:45 UTC (permalink / raw)
  To: linux-mtd

>From d3e51689869fae928f6289307452a698359302ff Mon Sep 17 00:00:00 2001
From: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Date: Fri, 16 Mar 2007 16:15:45 +0100
Subject: [PATCH] Obsolete nodes that are unlinked when possible.


Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
---
 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();
-- 
1.4.4.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-04-21  8:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-16 15:45 [PATCH] Obsolete nodes that are unlinked when possible Joakim Tjernlund
2007-03-16 16:14 ` Joakim Tjernlund
2007-03-16 16:27   ` Artem Bityutskiy
2007-03-16 17:04     ` Joakim Tjernlund
2007-03-16 17:26       ` Artem Bityutskiy
2007-03-19 10:55       ` Ferenc Havasi
2007-03-19 14:56         ` Joakim Tjernlund
2007-04-19 19:34 ` Joakim Tjernlund
2007-04-20 21:13   ` David Woodhouse
2007-04-21  8:56     ` Joakim Tjernlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox