]> git.baikalelectronics.ru Git - kernel.git/commit
[JFFS2] Don't advance c->wbuf_ofs to next eraseblock after wbuf flush
authorDavid Woodhouse <dwmw2@infradead.org>
Sat, 5 May 2007 08:52:49 +0000 (09:52 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 5 May 2007 08:52:49 +0000 (09:52 +0100)
commitd3a4ad173e1feaae1cce5b3785401c4c2946da18
treed8da4d00e1c66eca503c511913532e6d98ea0ab2
parent52ee3644b3fdd85a4d53371f5a3cb2c2a18c8e59
[JFFS2] Don't advance c->wbuf_ofs to next eraseblock after wbuf flush

After flushing the last page of an eraseblock, don't leave the
wbuf 'offset' field pointing at the start of the next physical
eraseblock. This was causing a BUG() on NOR-ECC (Sibley) flash, where
we start writing a little further in, after the cleanmarker.

Debugged by Alexander Belyakov <abelyako@googlemail.com>

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/wbuf.c