mtd/fs/jffs2 nodemgmt.c,1.108,1.109
havasi at infradead.org
havasi at infradead.org
Thu Oct 7 11:08:51 EDT 2004
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/home/havasi/mtd/fs/jffs2
Modified Files:
nodemgmt.c
Log Message:
fix jeb->last_node handling in jffs2_mark_node_obsolete()
Index: nodemgmt.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/nodemgmt.c,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -r1.108 -r1.109
--- nodemgmt.c 21 Sep 2004 12:30:37 -0000 1.108
+++ nodemgmt.c 7 Oct 2004 15:08:47 -0000 1.109
@@ -571,8 +571,8 @@
struct jffs2_raw_node_ref *n = ref->next_phys;
ref->__totlen += n->__totlen;
- /* we don't need to check jeb->last_node */
ref->next_phys = n->next_phys;
+ if (jeb->last_node == n) jeb->last_node = ref;
if (jeb->gc_node == n) {
/* gc will be happy continuing gc on this node */
jeb->gc_node=ref;
More information about the linux-mtd-cvs
mailing list