*/
const char *yaffs_guts_c_version =
- "$Id: yaffs_guts.c,v 1.27 2005-12-20 04:02:18 charles Exp $";
+ "$Id: yaffs_guts.c,v 1.29 2006-02-08 22:29:14 charles Exp $";
#include "yportenv.h"
static Y_INLINE int yaffs_HashFunction(int n)
{
+ n = abs(n);
return (n % YAFFS_NOBJECT_BUCKETS);
}
("yaffs: About to finally delete object %d"
TENDSTR), object->objectId));
yaffs_DoGenericObjectDeletion(object);
+ object->myDev->nDeletedFiles--;
}
}
nFree = yaffs_CountFreeChunks(dev);
#endif
+ nFree += dev->nDeletedFiles;
+
/* Now count the number of dirty chunks in the cache and subtract those */
{