diff options
author | Andrew Victor <andrew@sanpeople.com> | 2005-02-09 04:24:26 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-05-23 06:29:43 -0400 |
commit | 2f82ce1eb637c06dfc60f095cd1891ae0ba4894c (patch) | |
tree | 425727d05f70fdd55d5cf715c7acbeca6aeeeb18 /fs/jffs2/nodelist.h | |
parent | 8f15fd55f9bf266139b10850947e19c4e3f4e9b7 (diff) |
[JFFS2] Use a single config option for write buffer support
This patch replaces the current CONFIG_JFFS2_FS_NAND, CONFIG_JFFS2_FS_NOR_ECC
and CONFIG_JFFS2_FS_DATAFLASH with a single configuration option -
CONFIG_JFFS2_FS_WRITEBUFFER.
The only functional change of this patch is that the slower div/mod
calculations for SECTOR_ADDR(), PAGE_DIV() and PAGE_MOD() are now always
used when CONFIG_JFFS2_FS_WRITEBUFFER is enabled.
Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/jffs2/nodelist.h')
-rw-r--r-- | fs/jffs2/nodelist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jffs2/nodelist.h b/fs/jffs2/nodelist.h index a4864d05ea92..8c122838bf6d 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.126 2004/11/19 15:06:29 dedekind Exp $ | 10 | * $Id: nodelist.h,v 1.127 2005/02/09 09:23:53 pavlov Exp $ |
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
@@ -462,7 +462,7 @@ int jffs2_do_mount_fs(struct jffs2_sb_info *c); | |||
462 | /* erase.c */ | 462 | /* erase.c */ |
463 | void jffs2_erase_pending_blocks(struct jffs2_sb_info *c, int count); | 463 | void jffs2_erase_pending_blocks(struct jffs2_sb_info *c, int count); |
464 | 464 | ||
465 | #ifdef CONFIG_JFFS2_FS_NAND | 465 | #ifdef CONFIG_JFFS2_FS_WRITEBUFFER |
466 | /* wbuf.c */ | 466 | /* wbuf.c */ |
467 | int jffs2_flush_wbuf_gc(struct jffs2_sb_info *c, uint32_t ino); | 467 | int jffs2_flush_wbuf_gc(struct jffs2_sb_info *c, uint32_t ino); |
468 | int jffs2_flush_wbuf_pad(struct jffs2_sb_info *c); | 468 | int jffs2_flush_wbuf_pad(struct jffs2_sb_info *c); |