Hi all,
I just patched the whole latest code from git server, and found some problems after stress test.
The latest patch I used was "yaffs Update README-linux to reflect kernel patching changes" (commit    ed8b893aade8e0819a17bfa6009a6fb367ebb9c8) on Sep 29, 2010.
(http://www.aleph1.co.uk/gitweb?p=yaffs2/.git;a=commit;h=ed8b893aade8e0819a17bfa6009a6fb367ebb9c8)

What I did was listed below:
1. Got the whole latest code from git server.
2. Modified /fs/Makefile, and /fs/Kconfig, remove the original yaffs2, then ran patch-ker.sh c m /Android2-2/kernel/ to patch the while latest yaffs2.
3. Ran stress test with a stress testing program, fsstress,  on my device.
    a. Ran fsstress, which folked 3 childs to run fsstress
    b. At random time, we reset our device.
    c. Repeated the above 2 steps.
4. I ran it for a nigth, and found it failed to mount mtdblock6 as /data partition successfully in the morning.

The error message what I got was listed below. It seems that the data was corrupted due to the stress testing, so yaffs2 failed to recognize it.
The device is in my hand now, The device is at my hand now, I could add more debug to it,

Does anyone have any suggestion?  Any comment are welcome! Thanks!

===
09-27 02:28:23.130 V/PrintK  (    1): <7>yaffs: Attempting MTD mount of 31.6,"mtdblock6"
09-27 02:28:23.790 V/PrintK  (    1): <7>block 1609 is bad
09-27 02:28:23.790 V/PrintK  (    1): <7>block 1610 is bad
09-27 02:28:42.360 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.360 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.360 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.370 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.380 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.390 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.390 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.400 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.400 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.400 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.410 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.410 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.430 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.450 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.450 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.460 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.470 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.470 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.470 V/PrintK  (    1): <7>yaffs tragedy: Bad object type, 3 != 1, for object 1047 at chunk 166563 during scan
09-27 02:28:42.470 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.470 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.470 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.480 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.490 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.490 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.490 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.500 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.510 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.510 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.510 V/PrintK  (    1): <7>yaffs tragedy: Bad object type, 2 != 3, for object 848 at chunk 165772 during scan
09-27 02:28:42.510 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.510 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.520 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.520 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.530 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.530 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.530 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.530 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.540 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.540 V/PrintK  (    1): <7>yaffs tragedy: Bad object type, 1 != 3, for object 852 at chunk 164635 during scan\
09-27 02:28:42.550 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.550 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.560 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.560 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.560 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.580 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.580 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.580 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.590 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.590 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.620 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.620 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.630 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.640 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.660 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.670 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
09-27 02:28:42.690 V/PrintK  (    1): <7>yaffs tragedy: Bad object type, 1 != 3, for object 422 at chunk 160361 during scan
09-27 02:28:42.690 V/PrintK  (    1): <7>yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found.
===

And the proc/yaffs info was listed below:
===
Device 6 "userdata"

startBlock......... 0
endBlock........... 4399
totalBytesPerChunk. 2048
useNANDECC......... 1
noTagsECC.......... 1
isYaffs2........... 1
inbandTags......... 0
emptyLostAndFound.. 0
disableLazyLoad.... 0
refreshPeriod...... 500
nShortOpCaches..... 10
nReservedBlocks.... 5
alwaysCheckErased.. 0
nDataBytesPerChunk. 2048
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 545
blocksInCheckpoint. 0
nTnodes............ 0
nObjects........... 0
nFreeChunks........ 116017
nPageWrites........ 61
nPageReads......... 200140
nBlockErasures..... 0
nGCCopies.......... 0
allGCs............. 0
passiveGCs......... 0
oldestDirtyGCs..... 0
nGCBlocks.......... 0
backgroundGCs...... 0
nRetriedWrites..... 0
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 7919
refreshCount....... 0
nBackgroudDeletions 0
===







regards,
RK