[JFFS2] Write buffer offset adjustment for NOR-ECC (Sibley) flash
authorAlexander Belyakov <abelyako@mail.ru>
Fri, 17 Oct 2008 15:19:13 +0000 (19:19 +0400)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 18 Oct 2008 10:54:09 +0000 (11:54 +0100)
commit5bf1723723487ddb0b9c9641b6559da96b27cc93
tree809313985fb6d037572314e9bc572c3342594127
parent43b5693d404127697d62962def8c1bfe3a89811a
[JFFS2] Write buffer offset adjustment for NOR-ECC (Sibley) flash

After choosing new c->nextblock, don't leave the wbuf offset field
occasionally pointing at the start of the next physical eraseblock.
This was causing a BUG() on NOR-ECC (Sibley) flash, where we start
writing after the cleanmarker.

Among other this fix should cover write buffer offset adjustment
after flushing the last page of an eraseblock.

Signed-off-by: Alexander Belyakov <abelyako@googlemail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
fs/jffs2/nodemgmt.c
fs/jffs2/wbuf.c