aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/nodelist.h
diff options
context:
space:
mode:
authorFerenc Havasi <havasi@inf.u-szeged.hu>2005-08-31 09:51:04 -0400
committerThomas Gleixner <tglx@mtd.linutronix.de>2005-11-06 15:08:27 -0500
commit4ce1f562189696605a84813cf71847c0cc698414 (patch)
tree1ec543b00db38f5ae8db38f0f881db11ebb5d010 /fs/jffs2/nodelist.h
parentf0507530cbedf37515e0d803c332cdb81b34e71a (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/nodelist.h')
-rw-r--r--fs/jffs2/nodelist.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/jffs2/nodelist.h b/fs/jffs2/nodelist.h
index ce47d5530a70..1533af8b3959 100644
--- a/fs/jffs2/nodelist.h
+++ b/fs/jffs2/nodelist.h
@@ -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: nodelist.h,v 1.138 2005/08/17 13:46:23 dedekind Exp $ 10 * $Id: nodelist.h,v 1.139 2005/08/31 13:51:00 havasi Exp $
11 * 11 *
12 */ 12 */
13 13
@@ -197,6 +197,11 @@ struct jffs2_eraseblock
197 struct jffs2_raw_node_ref *gc_node; /* Next node to be garbage collected */ 197 struct jffs2_raw_node_ref *gc_node; /* Next node to be garbage collected */
198}; 198};
199 199
200static inline int jffs2_blocks_use_vmalloc(struct jffs2_sb_info *c)
201{
202 return ((c->flash_size / c->sector_size) * sizeof (struct jffs2_eraseblock)) > (128 * 1024);
203}
204
200/* Calculate totlen from surrounding nodes or eraseblock */ 205/* Calculate totlen from surrounding nodes or eraseblock */
201static inline uint32_t __ref_totlen(struct jffs2_sb_info *c, 206static inline uint32_t __ref_totlen(struct jffs2_sb_info *c,
202 struct jffs2_eraseblock *jeb, 207 struct jffs2_eraseblock *jeb,