From: Artem Bityutskiy Date: Mon, 25 Aug 2008 15:34:45 +0000 (+0300) Subject: UBIFS: add forgotten gc_idx_lebs component X-Git-Tag: v2.6.27-rc6~7^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=131130b9a1e6e523c64b34137b14f88ae1382a6a;p=linux-2.6-omap-h63xx.git UBIFS: add forgotten gc_idx_lebs component We add this component at other similar places, but not in this one. Signed-off-by: Artem Bityutskiy --- diff --git a/fs/ubifs/find.c b/fs/ubifs/find.c index 9fc55ae7b03..e045c8b5542 100644 --- a/fs/ubifs/find.c +++ b/fs/ubifs/find.c @@ -243,7 +243,7 @@ int ubifs_find_dirty_leb(struct ubifs_info *c, struct ubifs_lprops *ret_lp, int lebs, rsvd_idx_lebs = 0; spin_lock(&c->space_lock); - lebs = c->lst.empty_lebs; + lebs = c->lst.empty_lebs + c->idx_gc_cnt; lebs += c->freeable_cnt - c->lst.taken_empty_lebs; /*