This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

about jiffies!


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]