Re: why is the jiffies 128 in jffs2_find_gc_block() in gc.c ofjffs2.

From: Josh Boyer
Date: Thu Jul 21 2005 - 13:04:23 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/