mtd/fs/jffs2 build.c,1.59,1.60
Artem Bityuckiy
dedekind at infradead.org
Wed Nov 17 12:13:16 EST 2004
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv9483
Modified Files:
build.c
Log Message:
Do the pass1 with the JFFS2_SB_FLAG_MOUNTING flag set in order to preven
the physical flash writing if we have found the inode-less direntry.
Index: build.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/build.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- build.c 17 Nov 2004 12:56:15 -0000 1.59
+++ build.c 17 Nov 2004 17:13:13 -0000 1.60
@@ -96,8 +96,6 @@
c->flags |= JFFS2_SB_FLAG_MOUNTING;
ret = jffs2_scan_medium(c);
- c->flags &= ~JFFS2_SB_FLAG_MOUNTING;
-
if (ret)
return ret;
@@ -115,6 +113,8 @@
cond_resched();
}
}
+ c->flags &= ~JFFS2_SB_FLAG_MOUNTING;
+
D1(printk(KERN_DEBUG "Pass 1 complete\n"));
/* Next, scan for inodes with nlink == 0 and remove them. If
More information about the linux-mtd-cvs
mailing list