summaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
authorAdrian Hunter <ext-adrian.hunter@nokia.com>2008-09-17 10:52:07 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-09-17 14:47:09 +0300
commit6e14968c869cd30e236bb626dd0c16421d2a658d (patch)
treecda074861f6c0a7d8c67a07bb8da2f9fff874566 /fs/ubifs
parent6dcfac4f13d6b32fbaa60b64a23249999e66af8e (diff)
downloadop-kernel-dev-6e14968c869cd30e236bb626dd0c16421d2a658d.zip
op-kernel-dev-6e14968c869cd30e236bb626dd0c16421d2a658d.tar.gz
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>
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/find.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ubifs/find.c b/fs/ubifs/find.c
index e045c8b..47814cd 100644
--- a/fs/ubifs/find.c
+++ b/fs/ubifs/find.c
@@ -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
OpenPOWER on IntegriCloud