X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_guts.c;h=389a57ca79f25efb475ef3e1311f3e6e4ab3c8b5;hp=a1782e7a5177a4293058bc7061e5c46206521887;hb=b76bff5557ccc92df456fd7b1cd13c8b061cda07;hpb=dadd2bbe7500ebd8c99868992483aaf7e59d55be diff --git a/yaffs_guts.c b/yaffs_guts.c index a1782e7..389a57c 100644 --- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -2500,8 +2500,10 @@ static unsigned yaffs_FindBlockForGarbageCollection(yaffs_Device *dev, dev->param.nChunksPerBlock - dev->gcPagesInUse, prioritised)); + dev->nGCBlocks++; if(background) dev->backgroundGCs++; + dev->gcDirtiest = 0; dev->gcPagesInUse = 0; dev->gcNotDone = 0;