All of lore.kernel.org
 help / color / mirror / Atom feed
* why is the jiffies 128 in jffs2_find_gc_block() in gc.c of jffs2.
@ 2005-07-21 17:13 krishna
  2005-07-21 18:03 ` Josh Boyer
  0 siblings, 1 reply; 2+ messages in thread
From: krishna @ 2005-07-21 17:13 UTC (permalink / raw)
  To: Linux Kernel

Hi,

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

Regards,
Krishna Chaitanya

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: why is the jiffies 128 in jffs2_find_gc_block() in gc.c of jffs2.
  2005-07-21 17:13 why is the jiffies 128 in jffs2_find_gc_block() in gc.c of jffs2 krishna
@ 2005-07-21 18:03 ` Josh Boyer
  0 siblings, 0 replies; 2+ messages in thread
From: Josh Boyer @ 2005-07-21 18:03 UTC (permalink / raw)
  To: krishna; +Cc: Linux Kernel

On Thu, 2005-07-21 at 22:43 +0530, krishna wrote:
> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-21 18:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-21 17:13 why is the jiffies 128 in jffs2_find_gc_block() in gc.c of jffs2 krishna
2005-07-21 18:03 ` Josh Boyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.