UBIFS: small amendments in the LEB scanning code
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 29 Jun 2009 14:59:23 +0000 (17:59 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 10 Jul 2009 09:16:23 +0000 (12:16 +0300)
commit134d0e9f824b8722f522c7091af16b14bc67cd87
tree122c0472fe3b3b0a82891b41e72ecd67cd887d2b
parenta42343d938e81b518fdf892582061f34e773b471
UBIFS: small amendments in the LEB scanning code

This patch fixes few minor things I've spotted while going through
code:

1. Better document return codes
2. If 'ubifs_scan_a_node()' returns some thing we do not expect,
   treat this as an error.
3. Try to do recovery only when 'ubifs_scan()' returns %-EUCLEAN,
   not on any error.
4. If empty space starts at a non-aligned address, print a message.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Reviewed-by: Adrian Hunter <Adrian.Hunter@nokia.com>
fs/ubifs/recovery.c
fs/ubifs/replay.c
fs/ubifs/scan.c