diff options
-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 | /* |