diff --git a/[refs] b/[refs] index 7f64b1a5df1c..ffe03c7e7b4e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ad507653a39e0d27404291e5d813683265388a20 +refs/heads/master: 131130b9a1e6e523c64b34137b14f88ae1382a6a diff --git a/trunk/fs/ubifs/find.c b/trunk/fs/ubifs/find.c index 9fc55ae7b033..e045c8b55423 100644 --- a/trunk/fs/ubifs/find.c +++ b/trunk/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; /*