UBIFS: use max_write_size during recovery
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 2 Feb 2011 07:22:54 +0000 (09:22 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 8 Mar 2011 08:12:49 +0000 (10:12 +0200)
commit2765df7da540687c4d57ca840182122f074c5b9c
treec3dcf4c3ae4c6596ca0ac61a119274b7b4e782c4
parent6c7f74f703cc4baf053270a6e78a32f832f03445
UBIFS: use max_write_size during recovery

When recovering from unclean reboots UBIFS scans the journal and checks nodes.
If a corrupted node is found, UBIFS tries to check if this is the last node
in the LEB or not. This is is done by checking if there only 0xFF bytes
starting from the next min. I/O unit. However, since now we write in
c->max_write_size, we should actually check for 0xFFs starting from the
next max. write unit.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/recovery.c