X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_tagscompat.c;h=020eee5356734e84f459885771590d52496d5dec;hp=402537fb4ee1387132075c4247161bda4ab0d438;hb=e0b000dbd0c2959c9b60e83aed724b9280b3f831;hpb=97f9eea27dc6b83fe55f9b86adbb5e4961ea921a diff --git a/yaffs_tagscompat.c b/yaffs_tagscompat.c index 402537f..020eee5 100644 --- a/yaffs_tagscompat.c +++ b/yaffs_tagscompat.c @@ -15,6 +15,7 @@ #include "yaffs_tagscompat.h" #include "yaffs_ecc.h" #include "yaffs_getblockinfo.h" +#include "yaffs_trace.h" static void yaffs_HandleReadDataError(yaffs_Device *dev, int chunkInNAND); #ifdef NOTYET @@ -170,7 +171,6 @@ static int yaffs_WriteChunkToNAND(struct yaffs_DeviceStruct *dev, return YAFFS_FAIL; } - dev->nPageWrites++; return dev->writeChunkToNAND(dev, chunkInNAND, data, spare); } @@ -184,8 +184,6 @@ static int yaffs_ReadChunkFromNAND(struct yaffs_DeviceStruct *dev, int retVal; yaffs_Spare localSpare; - dev->nPageReads++; - if (!spare && data) { /* If we don't have a real spare, then we use a local one. */ /* Need this for the calculation of the ecc */