summaryrefslogtreecommitdiff
path: root/fs/ubifs
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-25 18:34:45 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-31 17:21:31 +0300
commit131130b9a1e6e523c64b34137b14f88ae1382a6a (patch)
tree22d96db5b23f229c037eebfe85aa9c68cb74ecc0 /fs/ubifs
parentad507653a39e0d27404291e5d813683265388a20 (diff)
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 <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/find.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/find.c b/fs/ubifs/find.c
index 9fc55ae7b033..e045c8b55423 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;
/*