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>
Thu, 9 Jul 2009 06:19:38 +0000 (09:19 +0300)
commit431102fed3effe4e4e19678830ddab7f05c34bf9
treecc3a9046a6abbbc026320449ee59b07bb70f6109
parented43f2f06cc1cec7ec2dc235c908530bc8c796eb
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