diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-08-25 19:34:45 +0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-08-31 18:21:31 +0400 |
commit | 131130b9a1e6e523c64b34137b14f88ae1382a6a (patch) | |
tree | 22d96db5b23f229c037eebfe85aa9c68cb74ecc0 /fs | |
parent | ad507653a39e0d27404291e5d813683265388a20 (diff) | |
download | linux-131130b9a1e6e523c64b34137b14f88ae1382a6a.tar.xz |
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')
-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, 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; /* |