]> git.baikalelectronics.ru Git - kernel.git/commit
[JFFS2] Disable summary after wbuf recovery
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Wed, 4 Apr 2007 10:47:53 +0000 (13:47 +0300)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 17 Apr 2007 17:56:44 +0000 (13:56 -0400)
commit5f959888bc555538ec21bf5d08208546080add03
tree38774bcd57912c5d6506959c86ee639cdeebe7b3
parent204067b187588f2b5cf126aa4248f5e890c5d666
[JFFS2] Disable summary after wbuf recovery

After a write error, any data in the write buffer must
be relocated.  This is handled by the jffs2_wbuf_recover
function.  This function does not fix up the erase block
summary information that is collected for writing at the
end of the block, which results in an incorrect summary
(or BUG if the summary was found to be empty).

As the summary is not essential (it is an optimisation),
it may be disabled for the current erase block when this
situation arises.  This patch does that.

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/wbuf.c