• Home
  • Raw
  • Download

Lines Matching refs:lnum

72 	       wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum,  in switch_gc_head()
260 err = ubifs_tnc_has_node(c, &snod->key, 0, sleb->lnum, in sort_nodes()
306 int err, new_lnum = wbuf->lnum, new_offs = wbuf->offs + wbuf->used; in move_node()
313 err = ubifs_tnc_replace(c, &snod->key, sleb->lnum, in move_node()
337 if (wbuf->lnum == -1) { in move_nodes()
433 ubifs_add_dirt(c, wbuf->lnum, ubifs_auth_node_sz(c)); in move_nodes()
496 int err = 0, lnum = lp->lnum; in ubifs_garbage_collect_leb() local
500 ubifs_assert(c, c->gc_lnum != lnum); in ubifs_garbage_collect_leb()
501 ubifs_assert(c, wbuf->lnum != lnum); in ubifs_garbage_collect_leb()
505 dbg_gc("LEB %d is free, return it", lp->lnum); in ubifs_garbage_collect_leb()
517 err = ubifs_change_one_lp(c, lp->lnum, c->leb_size, in ubifs_garbage_collect_leb()
522 err = ubifs_leb_unmap(c, lp->lnum); in ubifs_garbage_collect_leb()
527 c->gc_lnum = lnum; in ubifs_garbage_collect_leb()
538 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 0); in ubifs_garbage_collect_leb()
549 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb()
556 err = ubifs_dirty_idx_node(c, &snod->key, level, lnum, in ubifs_garbage_collect_leb()
568 idx_gc->lnum = lnum; in ubifs_garbage_collect_leb()
578 err = ubifs_change_one_lp(c, lnum, c->leb_size, 0, 0, in ubifs_garbage_collect_leb()
585 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb()
595 err = ubifs_change_one_lp(c, lnum, c->leb_size, 0, 0, 0, 0); in ubifs_garbage_collect_leb()
600 c->gced_lnum = lnum; in ubifs_garbage_collect_leb()
606 c->gc_lnum = lnum; in ubifs_garbage_collect_leb()
613 err = ubifs_leb_unmap(c, lnum); in ubifs_garbage_collect_leb()
627 c->gced_lnum = lnum; in ubifs_garbage_collect_leb()
696 lp.lnum = -1; in ubifs_garbage_collect()
742 lp.lnum, lp.free, lp.dirty, lp.free + lp.dirty, in ubifs_garbage_collect()
746 if (wbuf->lnum == -1) in ubifs_garbage_collect()
758 err = ubifs_return_leb(c, lp.lnum); in ubifs_garbage_collect()
771 lp.lnum = -1; in ubifs_garbage_collect()
779 dbg_gc("LEB %d freed, return", lp.lnum); in ubifs_garbage_collect()
780 ret = lp.lnum; in ubifs_garbage_collect()
791 dbg_gc("indexing LEB %d freed, continue", lp.lnum); in ubifs_garbage_collect()
797 dbg_gc("LEB %d retained, freed %d bytes", lp.lnum, in ubifs_garbage_collect()
860 if (lp.lnum != -1) in ubifs_garbage_collect()
861 ubifs_return_leb(c, lp.lnum); in ubifs_garbage_collect()
894 err = ubifs_leb_unmap(c, lp->lnum); in ubifs_gc_start_commit()
936 idx_gc->lnum = lp->lnum; in ubifs_gc_start_commit()
961 dbg_gc("LEB %d", idx_gc->lnum); in ubifs_gc_end_commit()
962 err = ubifs_leb_unmap(c, idx_gc->lnum); in ubifs_gc_end_commit()
965 err = ubifs_change_one_lp(c, idx_gc->lnum, LPROPS_NC, in ubifs_gc_end_commit()
1007 int lnum; in ubifs_get_idx_gc_leb() local
1012 lnum = idx_gc->lnum; in ubifs_get_idx_gc_leb()
1016 return lnum; in ubifs_get_idx_gc_leb()