diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-08-25 11:34:45 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-08-31 10:21:31 -0400 |
commit | 131130b9a1e6e523c64b34137b14f88ae1382a6a (patch) | |
tree | 22d96db5b23f229c037eebfe85aa9c68cb74ecc0 /fs/ubifs/find.c | |
parent | ad507653a39e0d27404291e5d813683265388a20 (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/find.c')
-rw-r--r-- | fs/ubifs/find.c | 2 |
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, | |||
243 | int lebs, rsvd_idx_lebs = 0; | 243 | int lebs, rsvd_idx_lebs = 0; |
244 | 244 | ||
245 | spin_lock(&c->space_lock); | 245 | spin_lock(&c->space_lock); |
246 | lebs = c->lst.empty_lebs; | 246 | lebs = c->lst.empty_lebs + c->idx_gc_cnt; |
247 | lebs += c->freeable_cnt - c->lst.taken_empty_lebs; | 247 | lebs += c->freeable_cnt - c->lst.taken_empty_lebs; |
248 | 248 | ||
249 | /* | 249 | /* |