UBIFS: reserve more space for index
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 25 Jul 2008 11:38:51 +0000 (14:38 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 May 2009 14:08:53 +0000 (17:08 +0300)
commitbf8acd9bd4b520293fa2b3348f83261e51c77a60
tree05e26bd243c0acaa0e21079e02ca1173841c6125
parent000ecf65f9c7d4db778c725aeba4894bc0092e99
UBIFS: reserve more space for index

At the moment UBIFS reserves twice old index size space for the
index. But this is not enough in some cases, because if the indexing
node are very fragmented and there are many small gaps, while the
dirty index has big znodes - in-the-gaps method would fail.

Thus, reserve trise as more, in which case we are guaranteed that
we can commit in any case.

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