]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
UBIFS: remove incorrect assert
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Wed, 17 Sep 2008 07:52:07 +0000 (10:52 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 17 Sep 2008 11:47:09 +0000 (14:47 +0300)
The assert was not valid because one of the variables
'taken_empty_lebs' has transient values out of sync
with the other variables.

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/find.c

index e045c8b55423e9adc7c312efbd8164f7e3584bc5..47814cde24076ba1fdd3775824d0bdeda61f79a3 100644 (file)
@@ -507,7 +507,6 @@ int ubifs_find_free_space(struct ubifs_info *c, int min_space, int *free,
                rsvd_idx_lebs = 0;
        lebs = c->lst.empty_lebs + c->freeable_cnt + c->idx_gc_cnt -
               c->lst.taken_empty_lebs;
-       ubifs_assert(lebs + c->lst.idx_lebs >= c->min_idx_lebs);
        if (rsvd_idx_lebs < lebs)
                /*
                 * OK to allocate an empty LEB, but we still don't want to go