More removing virtual blocks
PATCH 1/1 More removing virtual blocks
Here is a follow-on patch for Ferenc's patch that removes virtual block support from jffs2. Just a couple loose ends.
Pete
[JFFS2] Follow-on to Ferenc's jffs2-novirtblocks patch [From: Peter Grayson <[email protected]>]
fs/jffs2/fs.c +1 -5
@@ -469,10 +469,6 @@ int jffs2_do_fill_super(struct super_blo 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 @@ int jffs2_do_fill_super(struct super_bloiput (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);
Quoted 4 lines · Peter Grayson
Here is a follow-on patch for Ferenc's patch that removes virtual block support from jffs2. Just a couple loose ends.
Thanks Pete, commited.
Ferenc