[PATCH]erase block header(revision 4)

zhao forrest zhao_fusheng at hotmail.com
Wed Sep 28 03:33:46 EDT 2005


Hi,
This is the forth version. Compared with version 3, the
main changes are:
1 move "priv->jeb->has_ebh = 1;" from jffs2_erase_callback()
to jffs2_erase_succeeded() to prevent eCos from being broken.
2 define ebh at the top of erase.c and this ebh is shared
by jffs2_write_nand_ebh() in wbuf.c
3 remove unnecessary PAD() stuff
4 change has_ebh from uint32_t to one bit of flags
5 remove unnecessary dsize field from struct jffs2_raw_ebh{}
6 use ref_totlen() instead of directly getting __totlen.

The patch is at:
http://www.infradead.org/~forrest/eraseblock_header_r4.patch

Thanks,
Forrest






More information about the linux-mtd mailing list