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 /include/linux/jffs2_fs_sb.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 'include/linux/jffs2_fs_sb.h')
-rw-r--r-- | include/linux/jffs2_fs_sb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/jffs2_fs_sb.h b/include/linux/jffs2_fs_sb.h index faec29559fed..1bd6cdfb7d78 100644 --- a/include/linux/jffs2_fs_sb.h +++ b/include/linux/jffs2_fs_sb.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: jffs2_fs_sb.h,v 1.49 2005/02/09 09:17:41 pavlov Exp $ */ | 1 | /* $Id: jffs2_fs_sb.h,v 1.50 2005/02/09 09:23:55 pavlov Exp $ */ |
2 | 2 | ||
3 | #ifndef _JFFS2_FS_SB | 3 | #ifndef _JFFS2_FS_SB |
4 | #define _JFFS2_FS_SB | 4 | #define _JFFS2_FS_SB |
@@ -94,7 +94,7 @@ struct jffs2_sb_info { | |||
94 | to an obsoleted node. I don't like this. Alternatives welcomed. */ | 94 | to an obsoleted node. I don't like this. Alternatives welcomed. */ |
95 | struct semaphore erase_free_sem; | 95 | struct semaphore erase_free_sem; |
96 | 96 | ||
97 | #if defined CONFIG_JFFS2_FS_NAND || defined CONFIG_JFFS2_FS_NOR_ECC || defined CONFIG_JFFS2_FS_DATAFLASH | 97 | #ifdef CONFIG_JFFS2_FS_WRITEBUFFER |
98 | /* Write-behind buffer for NAND flash */ | 98 | /* Write-behind buffer for NAND flash */ |
99 | unsigned char *wbuf; | 99 | unsigned char *wbuf; |
100 | uint32_t wbuf_ofs; | 100 | uint32_t wbuf_ofs; |