Query
Estelle HAMMACHE
estelle.hammache at st.com
Tue Dec 21 07:42:43 EST 2004
Hi,
JFFS2 write pages sequentially from the start of an erase
block to the end of the block. The current
write block is in c->nextblock. The current write offset
in this block is c->nextblock->offset.
There is a write buffer (see file wbuf.c) to ensure that
only full pages are written, even though data nodes may
overlap a page boundary.
Data nodes may not overlap an erase block boundary: if there
is no more room in the current block, a new (empty) block
is selected (and the page buffer is flushed in the old block
previously to writing to the new block). The new block
selection and the write address selection happen in
nodemgmt.c (jffs2_do_reserve_space).
Does this answer your question ?
Estelle
Rudresh NB wrote:
>
> Hi All,
> Iam using samsung Nand flash (k9f2g08u0m). In
> that there is restriction of random page program. I
> heard that jffs2 takes care. but iam unable to find
> where exactly (In which file ) it is taken care.
> Brief explanation is appreciated.
>
> Thanx in advance
>
> Rgds
> NBR
More information about the linux-mtd
mailing list