aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/wbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/jffs2/wbuf.c')
-rw-r--r--fs/jffs2/wbuf.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/jffs2/wbuf.c b/fs/jffs2/wbuf.c
index a35e007e5bf8..890258505a7f 100644
--- a/fs/jffs2/wbuf.c
+++ b/fs/jffs2/wbuf.c
@@ -9,7 +9,7 @@
9 * 9 *
10 * For licensing information, see the file 'LICENCE' in this directory. 10 * For licensing information, see the file 'LICENCE' in this directory.
11 * 11 *
12 * $Id: wbuf.c,v 1.88 2005/02/09 09:17:41 pavlov Exp $ 12 * $Id: wbuf.c,v 1.89 2005/02/09 09:23:54 pavlov Exp $
13 * 13 *
14 */ 14 */
15 15
@@ -604,7 +604,7 @@ int jffs2_flush_wbuf_pad(struct jffs2_sb_info *c)
604 return ret; 604 return ret;
605} 605}
606 606
607#ifdef CONFIG_JFFS2_FS_DATAFLASH 607#ifdef CONFIG_JFFS2_FS_WRITEBUFFER
608#define PAGE_DIV(x) ( ((unsigned long)(x) / (unsigned long)(c->wbuf_pagesize)) * (unsigned long)(c->wbuf_pagesize) ) 608#define PAGE_DIV(x) ( ((unsigned long)(x) / (unsigned long)(c->wbuf_pagesize)) * (unsigned long)(c->wbuf_pagesize) )
609#define PAGE_MOD(x) ( (unsigned long)(x) % (unsigned long)(c->wbuf_pagesize) ) 609#define PAGE_MOD(x) ( (unsigned long)(x) % (unsigned long)(c->wbuf_pagesize) )
610#else 610#else
@@ -1198,7 +1198,6 @@ void jffs2_nand_flash_cleanup(struct jffs2_sb_info *c)
1198 kfree(c->wbuf); 1198 kfree(c->wbuf);
1199} 1199}
1200 1200
1201#ifdef CONFIG_JFFS2_FS_DATAFLASH
1202int jffs2_dataflash_setup(struct jffs2_sb_info *c) { 1201int jffs2_dataflash_setup(struct jffs2_sb_info *c) {
1203 c->cleanmarker_size = 0; /* No cleanmarkers needed */ 1202 c->cleanmarker_size = 0; /* No cleanmarkers needed */
1204 1203
@@ -1219,9 +1218,7 @@ int jffs2_dataflash_setup(struct jffs2_sb_info *c) {
1219void jffs2_dataflash_cleanup(struct jffs2_sb_info *c) { 1218void jffs2_dataflash_cleanup(struct jffs2_sb_info *c) {
1220 kfree(c->wbuf); 1219 kfree(c->wbuf);
1221} 1220}
1222#endif
1223 1221
1224#ifdef CONFIG_JFFS2_FS_NOR_ECC
1225int jffs2_nor_ecc_flash_setup(struct jffs2_sb_info *c) { 1222int jffs2_nor_ecc_flash_setup(struct jffs2_sb_info *c) {
1226 /* Cleanmarker is actually larger on the flashes */ 1223 /* Cleanmarker is actually larger on the flashes */
1227 c->cleanmarker_size = 16; 1224 c->cleanmarker_size = 16;
@@ -1241,4 +1238,3 @@ int jffs2_nor_ecc_flash_setup(struct jffs2_sb_info *c) {
1241void jffs2_nor_ecc_flash_cleanup(struct jffs2_sb_info *c) { 1238void jffs2_nor_ecc_flash_cleanup(struct jffs2_sb_info *c) {
1242 kfree(c->wbuf); 1239 kfree(c->wbuf);
1243} 1240}
1244#endif