diff options
author | Vitaly Wool <vwool@ru.mvista.com> | 2007-03-06 15:01:04 +0100 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-03-08 10:18:31 +0100 |
commit | 180bfb31fef77815d56b875d4f28d353fdc87bf8 (patch) | |
tree | 67a7fbae2581e97639473d76dc5a359556c090db /fs/nfs | |
parent | [MTD] [NAND] make oobavail public (diff) | |
download | linux-180bfb31fef77815d56b875d4f28d353fdc87bf8.tar.xz linux-180bfb31fef77815d56b875d4f28d353fdc87bf8.zip |
[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>
Diffstat (limited to 'fs/nfs')
0 files changed, 0 insertions, 0 deletions