[ECOS] about jiffies!

gu xm guximei0322@yahoo.com.cn
Sat Dec 28 00:56:00 GMT 2002


Hi all,

------------------------------------------------------
in file <gc.c>
in function <jffs2_find_gc_block(...)>

... ...
else if (jiffies % 100 && !list_empty(&c->dirty_list))
{
    nextlist = &c->dirty_list;
} else if (!list_empty(&c->clean_list)) 
{
    nextlist = &c->clean_list;
}
... ...
------------------------------------------------------

here it means every 100 times, garbage collect clean
list one time. But in jffs2port.h, jiffies is defined
to 100 and not be changed any more. Now, it garbage
collect clean list every time first, if clean list is
empty, it turn to dirty list. Is it right???

Thanks in advance!

Guximei


_________________________________________________________
Do You Yahoo!? 
"Ñó½ÚÍÁ½Ú¶¼Òª¹ý£¬´óÀñСÀñ²»·Å¹ý"
http://cn.promo.yahoo.com/holiday/

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list