Normalise macro to YAFFS_CONFIG_ALWAYS_CHECK_CHUNK_ERASED.
This reduces performance so output kernel message warning this is enabled.
Change refreshPeriod to make it much slower.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
/* CONFIG_YAFFS_DOES_ECC is set */
/* #define CONFIG_YAFFS_ECC_WRONG_ORDER */
/* CONFIG_YAFFS_DOES_ECC is set */
/* #define CONFIG_YAFFS_ECC_WRONG_ORDER */
-/* Default: Selected */
-/* Meaning: Disables testing whether chunks are erased before writing to them*/
-#define CONFIG_YAFFS_DISABLE_CHUNK_ERASED_CHECK
+/* Default: Not selected */
+/* Meaning: Always test whether chunks are erased before writing to them.
+ Use during mtd debugging and init. */
+/* #define CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED */
/* Default: Not Selected */
/* Meaning: At mount automatically empty all files from lost and found. */
/* Default: Not Selected */
/* Meaning: At mount automatically empty all files from lost and found. */
#ifdef CONFIG_YAFFS_DISABLE_BLOCK_REFRESHING
param->refreshPeriod = 0;
#else
#ifdef CONFIG_YAFFS_DISABLE_BLOCK_REFRESHING
param->refreshPeriod = 0;
#else
- param->refreshPeriod = 100;
+ param->refreshPeriod = 500;
#endif
if(options.empty_lost_and_found_overridden)
#endif
if(options.empty_lost_and_found_overridden)
T(YAFFS_TRACE_ALWAYS,
(TSTR("yaffs built " __DATE__ " " __TIME__ " Installing. \n")));
T(YAFFS_TRACE_ALWAYS,
(TSTR("yaffs built " __DATE__ " " __TIME__ " Installing. \n")));
+#ifdef CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED
+ T(YAFFS_TRACE_ALWAYS,
+ (TSTR(" \n\n\n\nYAFFS-WARNING CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED selected.\n\n\n\n")));
+#endif
+
+
+
+
init_MUTEX(&yaffs_context_lock);
/* Install the proc_fs entries */
init_MUTEX(&yaffs_context_lock);
/* Install the proc_fs entries */