From: Vitaly Wool Date: Tue, 6 Mar 2007 14:01:04 +0000 (+0300) Subject: [JFFS2] Fix writebuffer recovery in the first page of a block X-Git-Tag: v2.6.21-rc4~69^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=180bfb31fef77815d56b875d4f28d353fdc87bf8;p=pandora-kernel.git [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 Signed-off-by: Thomas Gleixner Signed-off-by: David Woodhouse --- Reading git-diff-tree failed