aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/jffs2_fs_sb.h
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-07-11 09:23:54 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2007-07-11 09:23:54 -0400
commita6bc432e296dfa1f05d4b586ca5ca3085a2d42d7 (patch)
treedb51669fcc74686efb4c65f98938907d76202ffa /fs/jffs2/jffs2_fs_sb.h
parentef53cb02ffee8ceb44ea75f778f77eace6b9c89a (diff)
[JFFS2] Add support for write-buffer verification.
We've seen some evil corruption issues, where the corruption seems to be introduced after the JFFS2 crc32 is calculated but before the NAND controller calculates the ECC. So it's in RAM or in the PCI DMA transfer; not on the flash. Attempt to catch it earlier by (optionally) reading back from the flash immediately after writing it. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2/jffs2_fs_sb.h')
-rw-r--r--fs/jffs2/jffs2_fs_sb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/jffs2/jffs2_fs_sb.h b/fs/jffs2/jffs2_fs_sb.h
index b13298a824ed..ae99cd7fd43b 100644
--- a/fs/jffs2/jffs2_fs_sb.h
+++ b/fs/jffs2/jffs2_fs_sb.h
@@ -106,6 +106,9 @@ struct jffs2_sb_info {
106 106
107 uint32_t wbuf_pagesize; /* 0 for NOR and other flashes with no wbuf */ 107 uint32_t wbuf_pagesize; /* 0 for NOR and other flashes with no wbuf */
108 108
109#ifdef CONFIG_JFFS2_FS_WBUF_VERIFY
110 unsigned char *wbuf_verify; /* read-back buffer for verification */
111#endif
109#ifdef CONFIG_JFFS2_FS_WRITEBUFFER 112#ifdef CONFIG_JFFS2_FS_WRITEBUFFER
110 unsigned char *wbuf; /* Write-behind buffer for NAND flash */ 113 unsigned char *wbuf; /* Write-behind buffer for NAND flash */
111 uint32_t wbuf_ofs; 114 uint32_t wbuf_ofs;