Lines Matching refs:gc_lnum
67 int err, gc_lnum = c->gc_lnum; in switch_gc_head() local
70 ubifs_assert(c, gc_lnum != -1); in switch_gc_head()
72 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum, in switch_gc_head()
83 err = ubifs_leb_unmap(c, gc_lnum); in switch_gc_head()
87 err = ubifs_add_bud_to_log(c, GCHD, gc_lnum, 0); in switch_gc_head()
91 c->gc_lnum = -1; in switch_gc_head()
92 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum, 0); in switch_gc_head()
498 ubifs_assert(c, c->gc_lnum != -1 || wbuf->offs + wbuf->used == 0 || in ubifs_garbage_collect_leb()
500 ubifs_assert(c, c->gc_lnum != lnum); in ubifs_garbage_collect_leb()
526 if (c->gc_lnum == -1) { in ubifs_garbage_collect_leb()
527 c->gc_lnum = lnum; in ubifs_garbage_collect_leb()
605 if (c->gc_lnum == -1) { in ubifs_garbage_collect_leb()
606 c->gc_lnum = lnum; in ubifs_garbage_collect_leb()
845 err = ubifs_leb_unmap(c, c->gc_lnum); in ubifs_garbage_collect()