From: Charles Manning Date: Thu, 28 Apr 2011 03:57:52 +0000 (+1200) Subject: Merge branch 'block-summary' X-Git-Tag: pre-driver-refactoring~41^2~15 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=c4e8d85455d0acf2a3da23c20cd2db66d30caf1b Merge branch 'block-summary' Conflicts: yaffs_vfs_multi.c Signed-off-by: Charles Manning --- c4e8d85455d0acf2a3da23c20cd2db66d30caf1b diff --cc yaffs_guts.h index 77c05d3,fc31143..6ec8a47 --- a/yaffs_guts.h +++ b/yaffs_guts.h @@@ -278,9 -282,12 +280,10 @@@ struct yaffs_block_info Block should be prioritised for GC */ u32 chunk_error_strikes:3; /* How many times we've had ecc etc failures on this block and tried to reuse it */ + u32 has_summary:1; /* The block has a summary */ -#ifdef CONFIG_YAFFS_YAFFS2 u32 has_shrink_hdr:1; /* This block has at least one shrink header */ u32 seq_number; /* block sequence number for yaffs2 */ -#endif }; diff --cc yaffs_vfs_multi.c index 7e28c40,15ff4ff..cf9df09 --- a/yaffs_vfs_multi.c +++ b/yaffs_vfs_multi.c @@@ -2835,8 -2863,20 +2838,9 @@@ static struct super_block *yaffs_intern if (options.tags_ecc_overridden) param->no_tags_ecc = !options.tags_ecc_on; -#ifdef CONFIG_YAFFS_EMPTY_LOST_AND_FOUND param->empty_lost_n_found = 1; -#endif - -#ifdef CONFIG_YAFFS_DISABLE_BLOCK_REFRESHING - param->refresh_period = 0; -#else param->refresh_period = 500; -#endif - -#ifdef CONFIG_YAFFS__ALWAYS_CHECK_CHUNK_ERASED - param->always_check_erased = 1; -#endif + param->disable_summary = options.disable_summary; if (options.empty_lost_and_found_overridden) param->empty_lost_n_found = options.empty_lost_and_found;