]> git.baikalelectronics.ru Git - kernel.git/commit
[JFFS2] Fix writebuffer recovery in the first page of a block
authorVitaly Wool <vwool@ru.mvista.com>
Tue, 6 Mar 2007 14:01:04 +0000 (17:01 +0300)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 8 Mar 2007 09:18:31 +0000 (09:18 +0000)
commit0ffe4734f51f6f6087889971d8315eefeb56f9e4
tree67a7fbae2581e97639473d76dc5a359556c090db
parentdc855a2c8c13eb2d0c0225186fc7438893364567
[JFFS2] Fix writebuffer recovery in the first page of a block

For the case when nand_write_page fail with -EIO for the first page in an
eraseblock, jffs2_wbuf_recover ends up producing a BUG in jffs2_block_refile
as jeb->first_node is not yet set up (it's set up later in jffs2_wbuf_recover).
This BUG is not really a bug; it's just jffs2_wbuf_recover calling
jffs2_block_refile with the wrong second parameter.
This patch takes care of this situation.

Signed-off-by: Vitaly Wool <vwool@ru.mvista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/wbuf.c