Skip to content

Commit

Permalink
UBIFS: remove incorrect assert
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
  • Loading branch information
Adrian Hunter authored and Artem Bityutskiy committed Sep 17, 2008
1 parent 6dcfac4 commit 6e14968
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/ubifs/find.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e14968

Please sign in to comment.