Lines Matching refs:ltab
144 lnum, c->ltab[lnum - c->lpt_first].free, in upd_ltab()
145 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in upd_ltab()
147 c->ltab[lnum - c->lpt_first].free = free; in upd_ltab()
148 c->ltab[lnum - c->lpt_first].dirty += dirty; in upd_ltab()
167 if (c->ltab[i].tgc || c->ltab[i].cmt) in alloc_lpt_leb()
169 if (c->ltab[i].free == c->leb_size) { in alloc_lpt_leb()
170 c->ltab[i].cmt = 1; in alloc_lpt_leb()
177 if (c->ltab[i].tgc || c->ltab[i].cmt) in alloc_lpt_leb()
179 if (c->ltab[i].free == c->leb_size) { in alloc_lpt_leb()
180 c->ltab[i].cmt = 1; in alloc_lpt_leb()
351 if (c->ltab[i].cmt) { in realloc_lpt_leb()
352 c->ltab[i].cmt = 0; in realloc_lpt_leb()
358 if (c->ltab[i].cmt) { in realloc_lpt_leb()
359 c->ltab[i].cmt = 0; in realloc_lpt_leb()
733 else if (c->ltab[i].free == c->leb_size) in need_write_all()
735 else if (c->ltab[i].free + c->ltab[i].dirty == c->leb_size) in need_write_all()
759 if (c->ltab[i].dirty > 0 && in lpt_tgc_start()
760 c->ltab[i].free + c->ltab[i].dirty == c->leb_size) { in lpt_tgc_start()
761 c->ltab[i].tgc = 1; in lpt_tgc_start()
762 c->ltab[i].free = c->leb_size; in lpt_tgc_start()
763 c->ltab[i].dirty = 0; in lpt_tgc_start()
783 if (c->ltab[i].tgc) { in lpt_tgc_end()
787 c->ltab[i].tgc = 0; in lpt_tgc_end()
1200 ubifs_assert(c, !c->ltab[i].tgc); in lpt_gc()
1202 c->ltab[i].free + c->ltab[i].dirty == c->leb_size) in lpt_gc()
1204 if (c->ltab[i].dirty > dirty) { in lpt_gc()
1205 dirty = c->ltab[i].dirty; in lpt_gc()
1283 memcpy(c->ltab_cmt, c->ltab, in ubifs_lpt_start_commit()
1487 vfree(c->ltab); in ubifs_lpt_free()
1668 if (len != c->ltab[i].free) { in dbg_check_ltab_lnum()
1670 lnum, len, c->ltab[i].free); in dbg_check_ltab_lnum()
1673 if (dirty != c->ltab[i].dirty) { in dbg_check_ltab_lnum()
1675 lnum, dirty, c->ltab[i].dirty); in dbg_check_ltab_lnum()
1752 if (c->ltab[i].tgc || c->ltab[i].cmt) in dbg_chk_lpt_free_spc()
1756 else if (c->ltab[i].free == c->leb_size) in dbg_chk_lpt_free_spc()