]> git.baikalelectronics.ru Git - kernel.git/commit
[JFFS2] Prevent list corruption when handling write errors
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Thu, 29 Mar 2007 08:00:47 +0000 (11:00 +0300)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 17 Apr 2007 17:56:23 +0000 (13:56 -0400)
commit204067b187588f2b5cf126aa4248f5e890c5d666
tree1443d71d19473758d21bbdcb3a3f080b9449c4f2
parent6bb403aa7850a80d1b4171b2abe094e6328618d6
[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>
fs/jffs2/nodemgmt.c