[PATCH] remove support for virtual blocks
Ferenc Havasi
havasi at inf.u-szeged.hu
Sun Aug 28 05:46:16 EDT 2005
Hi Jörn,
>Trivial patch. Anyone complaining about this is free to write a
>better one. Can I commit?
>
>
>+ if (!(c->mtd->flags & MTD_NO_VIRTBLOCKS) && (blocks * sizeof (struct jffs2_eraseblock)) > (128 * 1024)) {
>+ printk(KERN_ERR "jffs2: Support for virtual blocks was removed\n"
>+ " Please contact JFFS2 maintainers about this.\n");
>+ BUG();
>+ return -EIO;
>
Maybe we should use (temporary) vmalloc here instead of simply throwing
a BUG(). It's slower I know, but slow working is still better than not
working.
Ferenc
More information about the linux-mtd
mailing list