UBIFS: clean up free space checking
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 29 Jun 2009 15:58:34 +0000 (18:58 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 10 Jul 2009 09:16:23 +0000 (12:16 +0300)
commit530f520354883800f0ba6f09dd0605e4b7ebba49
treed19174da3c818aa86138a48a893f243b9a552c23
parent134d0e9f824b8722f522c7091af16b14bc67cd87
UBIFS: clean up free space checking

recovery.c has 'is_empty()' helper and it is better to use
this helper instead of re-implementing it in several places.
This patch does this and removes some amount of unneeded code.

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