mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
Revert "temp revert yaffs change"
This reverts commit 3349399fd5.
Conflicts:
fs/yaffs2/yaffs_fs.c
fs/yaffs2/yaffs_mtdif.c
This commit is contained in:
parent
1c1c6123f4
commit
7f56e24137
|
|
@ -2633,6 +2633,9 @@ static struct super_block *yaffs_internal_read_super(int yaffsVersion,
|
|||
param->nReservedBlocks = 5;
|
||||
param->nShortOpCaches = (options.no_cache) ? 0 : 10;
|
||||
param->inbandTags = options.inband_tags;
|
||||
#if defined (CONFIG_ARCH_RK2818) || (CONFIG_ARCH_RK29)
|
||||
dev->inbandTags = 1;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_YAFFS_DISABLE_LAZY_LOAD
|
||||
param->disableLazyLoad = 1;
|
||||
|
|
|
|||
|
|
@ -179,7 +179,12 @@ int nandmtd2_ReadChunkWithTagsFromNAND(yaffs_Device *dev, int chunkInNAND,
|
|||
if (localData)
|
||||
yaffs_ReleaseTempBuffer(dev, data, __LINE__);
|
||||
|
||||
#ifdef CONFIG_MTD_NAND_RK29
|
||||
//dxj 20101221@ if return -EBADMSG then i think the page is badchunk so just set the eccResult=YAFFS_ECC_RESULT_NO_ERROR
|
||||
if (tags && retval == -EBADMSG /*&& tags->eccResult == YAFFS_ECC_RESULT_NO_ERROR*/) {
|
||||
#else
|
||||
if (tags && retval == -EBADMSG && tags->eccResult == YAFFS_ECC_RESULT_NO_ERROR) {
|
||||
#endif
|
||||
tags->eccResult = YAFFS_ECC_RESULT_UNFIXED;
|
||||
dev->eccUnfixed++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user