[PATCH] remove support for virtual blocks
Jörn Engel
joern at wohnheim.fh-wedel.de
Fri Aug 26 06:25:12 EDT 2005
Trivial patch. Anyone complaining about this is free to write a
better one. Can I commit?
Jörn
--
To recognize individual spam features you have to try to get into the
mind of the spammer, and frankly I want to spend as little time inside
the minds of spammers as possible.
-- Paul Graham
Virtual mapping causes random incompatibilities depending on fs size,
cpu architecture and kernel data structures. Anything is better than
that.
Signed-off-by: Jörn Engel <joern at wohnheim.fh-wedel.de>
---
fs/jffs2/fs.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
--- linux-2.6.13-rc6cow/fs/jffs2/fs.c~jffs2_remove_virtual_mapping 2005-08-17 13:37:22.000000000 +0200
+++ linux-2.6.13-rc6cow/fs/jffs2/fs.c 2005-08-26 12:22:13.000000000 +0200
@@ -468,11 +468,11 @@ int jffs2_do_fill_super(struct super_blo
*/
c->sector_size = c->mtd->erasesize;
blocks = c->flash_size / c->sector_size;
- if (!(c->mtd->flags & MTD_NO_VIRTBLOCKS)) {
- while ((blocks * sizeof (struct jffs2_eraseblock)) > (128 * 1024)) {
- blocks >>= 1;
- c->sector_size <<= 1;
- }
+ 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;
}
/*
More information about the linux-mtd
mailing list