UBIFS: simplify make_free_space
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 9 Dec 2008 16:04:40 +0000 (11:04 -0500)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 31 Dec 2008 12:13:24 +0000 (14:13 +0200)
The 'make_free_space()' function was too complex and this patch
simplifies it. It also fixes a bug - the freespace test failed
straight away on UBI volumes with 512 bytes LEB size.

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

Simple merge