This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
about jiffies!
- From: =?gb2312?q?gu=20xm?= <guximei0322 at yahoo dot com dot cn>
- To: ecos-discuss at sources dot redhat dot com
- Cc: guximei0322 at yahoo dot com dot cn
- Date: Sat, 28 Dec 2002 15:48:12 +0800 (CST)
- Subject: [ECOS] 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