Skip to contentSkip to conversation

why is the jiffies 128 in jffs2_find_gc_block() in gc.c of jffs2.

DISCUSSION krishna 2 participants 2 messages Jul 21, 2005

lore
Share & tools
lore

krishna

author
#0 lore raw

Hi,

Can any one tell me
why is the jiffies _128_ in jffs2_find_gc_block() in gc.c of jffs2.

Regards,
Krishna Chaitanya

#1 lore raw
Quoted 4 lines · krishna

Hi,

Can any one tell me
why is the jiffies _128_ in jffs2_find_gc_block() in gc.c of jffs2.

jiffies isn't set in that function. The value of jiffies is modded by
128. Since jiffies is a volatile value, the value of n is usually different on each call of that function. This value is used to pick an eraseblock to garbage collect out of a series of different lists. This is done to help with effective wear leveling of flash eraseblocks.

josh