[JFFS2] Use a single config option for write buffer support
authorAndrew Victor <andrew@sanpeople.com>
Wed, 9 Feb 2005 09:24:26 +0000 (09:24 +0000)
committerThomas Gleixner <tglx@mtd.linutronix.de>
Mon, 23 May 2005 10:29:43 +0000 (12:29 +0200)
commit2f82ce1eb637c06dfc60f095cd1891ae0ba4894c
tree425727d05f70fdd55d5cf715c7acbeca6aeeeb18
parent8f15fd55f9bf266139b10850947e19c4e3f4e9b7
[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>
fs/Kconfig
fs/jffs2/Makefile
fs/jffs2/fs.c
fs/jffs2/nodelist.h
fs/jffs2/os-linux.h
fs/jffs2/scan.c
fs/jffs2/super.c
fs/jffs2/wbuf.c
include/linux/jffs2_fs_sb.h