Lines Matching refs:gc_lnum
83 int err, gc_lnum = c->gc_lnum; in switch_gc_head() local
86 ubifs_assert(gc_lnum != -1); in switch_gc_head()
88 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum, in switch_gc_head()
99 err = ubifs_leb_unmap(c, gc_lnum); in switch_gc_head()
103 err = ubifs_add_bud_to_log(c, GCHD, gc_lnum, 0); in switch_gc_head()
107 c->gc_lnum = -1; in switch_gc_head()
108 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum, 0, UBI_LONGTERM); in switch_gc_head()
471 ubifs_assert(c->gc_lnum != -1 || wbuf->offs + wbuf->used == 0 || in ubifs_garbage_collect_leb()
473 ubifs_assert(c->gc_lnum != lnum); in ubifs_garbage_collect_leb()
547 if (c->gc_lnum == -1) { in ubifs_garbage_collect_leb()
548 c->gc_lnum = lnum; in ubifs_garbage_collect_leb()
805 err = ubifs_leb_unmap(c, c->gc_lnum); in ubifs_garbage_collect()