diff options
author | Ferenc Havasi <havasi@inf.u-szeged.hu> | 2005-08-31 09:51:04 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-11-06 15:08:27 -0500 |
commit | 4ce1f562189696605a84813cf71847c0cc698414 (patch) | |
tree | 1ec543b00db38f5ae8db38f0f881db11ebb5d010 /fs/jffs2/build.c | |
parent | f0507530cbedf37515e0d803c332cdb81b34e71a (diff) |
[JFFS2] Remove support for virtual blocks
Remove support for virtual blocks, which are build by
concatenation of multiple physical erase blocks.
For more information please read the MTD mailing list thread
"[PATCH] remove support for virtual blocks"
Signed-off-by: Ferenc Havasi <havasi@inf.u-szeged.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/jffs2/build.c')
-rw-r--r-- | fs/jffs2/build.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/jffs2/build.c b/fs/jffs2/build.c index 8e2f1f4e8aa3..1522eace932e 100644 --- a/fs/jffs2/build.c +++ b/fs/jffs2/build.c | |||
@@ -7,7 +7,7 @@ | |||
7 | * | 7 | * |
8 | * For licensing information, see the file 'LICENCE' in this directory. | 8 | * For licensing information, see the file 'LICENCE' in this directory. |
9 | * | 9 | * |
10 | * $Id: build.c,v 1.76 2005/07/30 15:29:27 lunn Exp $ | 10 | * $Id: build.c,v 1.77 2005/08/31 13:51:00 havasi Exp $ |
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
@@ -318,7 +318,7 @@ int jffs2_do_mount_fs(struct jffs2_sb_info *c) | |||
318 | c->free_size = c->flash_size; | 318 | c->free_size = c->flash_size; |
319 | c->nr_blocks = c->flash_size / c->sector_size; | 319 | c->nr_blocks = c->flash_size / c->sector_size; |
320 | #ifndef __ECOS | 320 | #ifndef __ECOS |
321 | if (c->mtd->flags & MTD_NO_VIRTBLOCKS) | 321 | if (jffs2_blocks_use_vmalloc(c)) |
322 | c->blocks = vmalloc(sizeof(struct jffs2_eraseblock) * c->nr_blocks); | 322 | c->blocks = vmalloc(sizeof(struct jffs2_eraseblock) * c->nr_blocks); |
323 | else | 323 | else |
324 | #endif | 324 | #endif |
@@ -356,7 +356,7 @@ int jffs2_do_mount_fs(struct jffs2_sb_info *c) | |||
356 | jffs2_free_ino_caches(c); | 356 | jffs2_free_ino_caches(c); |
357 | jffs2_free_raw_node_refs(c); | 357 | jffs2_free_raw_node_refs(c); |
358 | #ifndef __ECOS | 358 | #ifndef __ECOS |
359 | if (c->mtd->flags & MTD_NO_VIRTBLOCKS) | 359 | if (jffs2_blocks_use_vmalloc(c)) |
360 | vfree(c->blocks); | 360 | vfree(c->blocks); |
361 | else | 361 | else |
362 | #endif | 362 | #endif |