Lines Matching refs:free
129 static void upd_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in upd_ltab() argument
132 lnum, c->ltab[lnum - c->lpt_first].free, in upd_ltab()
133 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in upd_ltab()
135 c->ltab[lnum - c->lpt_first].free = free; in upd_ltab()
157 if (c->ltab[i].free == c->leb_size) { in alloc_lpt_leb()
167 if (c->ltab[i].free == c->leb_size) { in alloc_lpt_leb()
683 long long free = 0; in need_write_all() local
688 free += c->leb_size - c->nhead_offs; in need_write_all()
689 else if (c->ltab[i].free == c->leb_size) in need_write_all()
690 free += c->leb_size; in need_write_all()
691 else if (c->ltab[i].free + c->ltab[i].dirty == c->leb_size) in need_write_all()
692 free += c->leb_size; in need_write_all()
695 if (free <= c->lpt_sz * 2) in need_write_all()
716 c->ltab[i].free + c->ltab[i].dirty == c->leb_size) { in lpt_tgc_start()
718 c->ltab[i].free = c->leb_size; in lpt_tgc_start()
1158 c->ltab[i].free + c->ltab[i].dirty == c->leb_size) in lpt_gc()
1628 if (len != c->ltab[i].free) { in dbg_check_ltab_lnum()
1630 lnum, len, c->ltab[i].free); in dbg_check_ltab_lnum()
1705 long long free = 0; in dbg_chk_lpt_free_spc() local
1715 free += c->leb_size - c->nhead_offs; in dbg_chk_lpt_free_spc()
1716 else if (c->ltab[i].free == c->leb_size) in dbg_chk_lpt_free_spc()
1717 free += c->leb_size; in dbg_chk_lpt_free_spc()
1719 if (free < c->lpt_sz) { in dbg_chk_lpt_free_spc()
1721 free, c->lpt_sz); in dbg_chk_lpt_free_spc()