Lines Matching refs:free
140 static void upd_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in upd_ltab() argument
143 lnum, c->ltab[lnum - c->lpt_first].free, in upd_ltab()
144 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in upd_ltab()
146 c->ltab[lnum - c->lpt_first].free = free; in upd_ltab()
168 if (c->ltab[i].free == c->leb_size) { in alloc_lpt_leb()
178 if (c->ltab[i].free == c->leb_size) { in alloc_lpt_leb()
726 long long free = 0; in need_write_all() local
731 free += c->leb_size - c->nhead_offs; in need_write_all()
732 else if (c->ltab[i].free == c->leb_size) in need_write_all()
733 free += c->leb_size; in need_write_all()
734 else if (c->ltab[i].free + c->ltab[i].dirty == c->leb_size) in need_write_all()
735 free += c->leb_size; in need_write_all()
738 if (free <= c->lpt_sz * 2) in need_write_all()
759 c->ltab[i].free + c->ltab[i].dirty == c->leb_size) { in lpt_tgc_start()
761 c->ltab[i].free = c->leb_size; in lpt_tgc_start()
1201 c->ltab[i].free + c->ltab[i].dirty == c->leb_size) in lpt_gc()
1668 if (len != c->ltab[i].free) { in dbg_check_ltab_lnum()
1670 lnum, len, c->ltab[i].free); in dbg_check_ltab_lnum()
1745 long long free = 0; in dbg_chk_lpt_free_spc() local
1755 free += c->leb_size - c->nhead_offs; in dbg_chk_lpt_free_spc()
1756 else if (c->ltab[i].free == c->leb_size) in dbg_chk_lpt_free_spc()
1757 free += c->leb_size; in dbg_chk_lpt_free_spc()
1759 if (free < c->lpt_sz) { in dbg_chk_lpt_free_spc()
1761 free, c->lpt_sz); in dbg_chk_lpt_free_spc()