Commit 6e14968c869cd30e236bb626dd0c16421d2a658d

Authored by Adrian Hunter
Committed by Artem Bityutskiy
1 parent 6dcfac4f13

UBIFS: remove incorrect assert

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>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

... ... @@ -507,7 +507,6 @@
507 507 rsvd_idx_lebs = 0;
508 508 lebs = c->lst.empty_lebs + c->freeable_cnt + c->idx_gc_cnt -
509 509 c->lst.taken_empty_lebs;
510   - ubifs_assert(lebs + c->lst.idx_lebs >= c->min_idx_lebs);
511 510 if (rsvd_idx_lebs < lebs)
512 511 /*
513 512 * OK to allocate an empty LEB, but we still don't want to go