diff options
author | Adrian Hunter <ext-adrian.hunter@nokia.com> | 2007-03-29 10:00:47 +0200 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-04-17 19:56:23 +0200 |
commit | 99c2594f0e13de1ca84f97efc3f9e7bc49f91e11 (patch) | |
tree | 1443d71d19473758d21bbdcb3a3f080b9449c4f2 /fs/jffs2/debug.c | |
parent | [MTD] nandsim: enhance nandsim to allow arbitrary NAND size (diff) | |
download | linux-99c2594f0e13de1ca84f97efc3f9e7bc49f91e11.tar.xz linux-99c2594f0e13de1ca84f97efc3f9e7bc49f91e11.zip |
[JFFS2] Prevent list corruption when handling write errors
If a write error occurs, the affected block is placed on the
bad_used_list. In the case that the write error occured
when writing summary data the block was also being placed on
the dirty_list, which caused list corruption and ultimately
a soft lockup in jffs2_mark_node_obsolete. This fixes 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>
Diffstat (limited to 'fs/jffs2/debug.c')
0 files changed, 0 insertions, 0 deletions