UBIFS: assert no fixup when writing a node
authorBen Gardiner <bengardiner@nanometrics.ca>
Mon, 30 May 2011 18:56:14 +0000 (14:56 -0400)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 3 Jun 2011 15:12:31 +0000 (18:12 +0300)
commit4f1ab9b01d34eac9fc958f7150d3bf266dcc1685
tree77ff5efa6449743984e77f491902fa53f7716969
parent837072377034d0a0b18b851d1ab95676b245cc0a
UBIFS: assert no fixup when writing a node

The current free space fixup can result in some writing to the UBI volume
when the space_fixup flag is set.

To catch instances where UBIFS is writing to the NAND while the space_fixup
flag is set, add an assert to ubifs_write_node().

Artem: tweaked the patch, added similar assertion to the write buffer
       write path.

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Reviewed-by: Matthew L. Creech <mlcreech@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/io.c