projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add scripts for realtime plotting erased psace vs free space
[yaffs2.git]
/
yaffs_guts.c
diff --git
a/yaffs_guts.c
b/yaffs_guts.c
index df66ec89860585636ffbfdaf0c80e7b90186493c..d8ca648d2f47b63f551519fb0ea9ac4efbb9f3bd 100644
(file)
--- a/
yaffs_guts.c
+++ b/
yaffs_guts.c
@@
-12,7
+12,7
@@
*/
const char *yaffs_guts_c_version =
*/
const char *yaffs_guts_c_version =
- "$Id: yaffs_guts.c,v 1.1
19 2010-03-12 02:48
:34 charles Exp $";
+ "$Id: yaffs_guts.c,v 1.1
20 2010-03-15 23:10
:34 charles Exp $";
#include "yportenv.h"
#include "yaffs_trace.h"
#include "yportenv.h"
#include "yaffs_trace.h"
@@
-3456,6
+3456,10
@@
static int yaffs_CheckGarbageCollection(yaffs_Device *dev)
int checkpointBlockAdjust;
int checkpointBlockAdjust;
+ if(dev->param.gcControl &&
+ (dev->param.gcControl(dev) & 1) == 0)
+ return YAFFS_OK;
+
if (dev->isDoingGC) {
/* Bail out so we don't get recursive gc */
return YAFFS_OK;
if (dev->isDoingGC) {
/* Bail out so we don't get recursive gc */
return YAFFS_OK;