[Yaffs] Maybe some issue about GC on yaffs2!

Jian Zhang Jean.Zhang at tom.com
Fri Nov 11 00:43:48 GMT 2005


yaffshi,
My system:
linux-2.4.21
yaffs2 work with Samsung K9F2G08UOM

I encountered a problem when delete multi files:
copy stuff(approx 100M) to it after apply "flash_eraseall",it seems 
like normally if i delete those seperately, but it corrupted if i 
use "rm -f *.*" ,here is content retrived from klogd(both MTD and
yaffs2 debug infos are turned on):
----------------klogd---------------------------------------------
...
Collecting page 6, 173671411 0 0 
page 11014 in gc has no object 
line 2248 delete of chunk 11014
nandmtd2_ReadChunkWithTagsToNAND chunk 10951 data c0363000 tags c5ed5d0c
nand_read_ecc: from = 0x01563800, len = 2048
packed tags obj -1502975143 chunk 1733731995 byte 54473532 seq -1513157629
ext.tags eccres 0 blkbad 0 chused 1 obj -1502975143 chunk1733731995 byte 54473532 del 0 ser 0 seq -1513157629
Unable to handle kernel paging request at virtual address 64106434
pgd = c5ed0000
 [64106434] *pgd=00000000, *pmd = 00000000
Internal error: Oops: 5
CPU: 0
pc:[yaffs-debug:yaffs_FindObjectByNumber+56/828] lr:[yaffs-debug:yaffs_RenameObject+3908/5632] Not tainted
sp : c5ed5d00  ip : c5d1890c  fp : 00003530
---<cut>------
Backtrace: invalid frame pointer
...
                 
------------------------------------------------------------------

here is /proc/yaffs info when corrupted:
---------------------------cat /proc/yaffs-------------------------------
YAFFS built:Nov 10 2005 11:25:08
$Id: yaffs_fs.c,v 1.33 2005/10/27 22:24:04 marty Exp $
$Id: yaffs_guts.c,v 1.22 2005/10/13 02:17:00 charles Exp $

Device 0 "EP9312 USER"
startBlock......... 0
endBlock........... 1023
chunkGroupBits..... 1
chunkGroupSize..... 2
nErasedBlocks...... 212
nTnodesCreated..... 3900
nFreeTnodes........ 874
nObjectsCreated.... 600
nFreeObjects....... 30
nFreeChunks........ 27917
nPageWrites........ 0
nPageReads......... 0
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 1
passiveGCs......... 1
nRetriedWrites..... 0
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 9
nUnlinkedFiles..... 34
nBackgroudDeletions 0
useNANDECC......... 1
isYaffs2........... 1

"page 11014 in gc has no object"
it seem like corrupted when do GC.

"obj -1502975143 ... seq -1513157629 "
does it mean that yaffs tags corrupted?  if so, i have to dig into 
mtd driver?

I am not sure it's an issue about yaffs2 or mtd, any comments will
be welcome!

Thanks!
        Jian Zhang
        Jean.Zhang at tom.com
          2005-11-10






More information about the yaffs mailing list