Lines Matching refs:leb_size
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()
198 if (!done_lsave && offs + c->lsave_sz <= c->leb_size) { in layout_cnodes()
206 if (offs + c->ltab_sz <= c->leb_size) { in layout_cnodes()
222 while (offs + len > c->leb_size) { in layout_cnodes()
224 upd_ltab(c, lnum, c->leb_size - alen, alen - offs); in layout_cnodes()
225 dbg_chk_lpt_sz(c, 2, c->leb_size - offs); in layout_cnodes()
265 if (offs + c->lsave_sz > c->leb_size) { in layout_cnodes()
267 upd_ltab(c, lnum, c->leb_size - alen, alen - offs); in layout_cnodes()
268 dbg_chk_lpt_sz(c, 2, c->leb_size - offs); in layout_cnodes()
285 if (offs + c->ltab_sz > c->leb_size) { in layout_cnodes()
287 upd_ltab(c, lnum, c->leb_size - alen, alen - offs); in layout_cnodes()
288 dbg_chk_lpt_sz(c, 2, c->leb_size - offs); in layout_cnodes()
303 upd_ltab(c, lnum, c->leb_size - alen, alen - offs); in layout_cnodes()
381 if (!done_lsave && offs + c->lsave_sz <= c->leb_size) { in write_cnodes()
388 if (offs + c->ltab_sz <= c->leb_size) { in write_cnodes()
401 while (offs + len > c->leb_size) { in write_cnodes()
411 dbg_chk_lpt_sz(c, 2, c->leb_size - offs); in write_cnodes()
461 if (offs + c->lsave_sz > c->leb_size) { in write_cnodes()
468 dbg_chk_lpt_sz(c, 2, c->leb_size - offs); in write_cnodes()
487 if (offs + c->ltab_sz > c->leb_size) { in write_cnodes()
494 dbg_chk_lpt_sz(c, 2, c->leb_size - offs); in write_cnodes()
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()
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()
1039 offs = c->leb_size - len; in get_pad_len()
1107 int err, len = c->leb_size, node_type, node_num, node_len, offs; in lpt_gc_lnum()
1112 err = ubifs_leb_read(c, lnum, buf, 0, c->leb_size, 1); in lpt_gc_lnum()
1130 offs = c->leb_size - len; in lpt_gc_lnum()
1158 c->ltab[i].free + c->ltab[i].dirty == c->leb_size) in lpt_gc()
1592 int err, len = c->leb_size, dirty = 0, node_type, node_num, node_len; in dbg_check_ltab_lnum()
1599 buf = p = __vmalloc(c->leb_size, GFP_NOFS); in dbg_check_ltab_lnum()
1607 err = ubifs_leb_read(c, lnum, buf, 0, c->leb_size, 1); in dbg_check_ltab_lnum()
1624 lnum, c->leb_size - len); in dbg_check_ltab_lnum()
1642 ret = dbg_is_node_dirty(c, node_type, lnum, c->leb_size - len); in dbg_check_ltab_lnum()
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()
1779 chk_lpt_sz = c->leb_size; in dbg_chk_lpt_sz()
1844 int err, len = c->leb_size, node_type, node_num, node_len, offs; in dump_lpt_leb()
1848 buf = p = __vmalloc(c->leb_size, GFP_NOFS); in dump_lpt_leb()
1854 err = ubifs_leb_read(c, lnum, buf, 0, c->leb_size, 1); in dump_lpt_leb()
1859 offs = c->leb_size - len; in dump_lpt_leb()