mtd/fs/jffs2 fs.c,1.63,1.64

havasi at infradead.org havasi at infradead.org
Thu Sep 1 04:42:35 EDT 2005


Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv32029

Modified Files:
	fs.c 
Log Message:
[JFFS2] remove support for virual blocks 2

Fix forgotten stuffs - thanks for Peter Grayson.



Index: fs.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/fs.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- fs.c	31 Aug 2005 13:51:00 -0000	1.63
+++ fs.c	1 Sep 2005 08:42:31 -0000	1.64
@@ -469,10 +469,6 @@
 			c->flash_size / 1024);
 	}
 
-	if (c->sector_size != c->mtd->erasesize)
-		printk(KERN_INFO "jffs2: Erase block size too small (%dKiB). Using virtual blocks size (%dKiB) instead\n", 
-			c->mtd->erasesize / 1024, c->sector_size / 1024);
-
 	if (c->flash_size < 5*c->sector_size) {
 		printk(KERN_ERR "jffs2: Too few erase blocks (%d)\n", c->flash_size / c->sector_size);
 		return -EINVAL;
@@ -522,7 +518,7 @@
 	iput(root_i);
 	jffs2_free_ino_caches(c);
 	jffs2_free_raw_node_refs(c);
-	if (c->mtd->flags & MTD_NO_VIRTBLOCKS)
+	if (jffs2_blocks_use_vmalloc(c))
 		vfree(c->blocks);
 	else
 		kfree(c->blocks);





More information about the linux-mtd-cvs mailing list