Lines Matching refs:lhead_lnum
106 h = (long long)c->lhead_lnum * c->leb_size + c->lhead_offs; in empty_log_bytes()
113 else if (c->lhead_lnum != c->ltail_lnum) in empty_log_bytes()
246 c->lhead_lnum = ubifs_next_log_lnum(c, c->lhead_lnum); in ubifs_add_bud_to_log()
247 ubifs_assert(c, c->lhead_lnum != c->ltail_lnum); in ubifs_add_bud_to_log()
253 err = ubifs_leb_unmap(c, c->lhead_lnum); in ubifs_add_bud_to_log()
272 c->lhead_lnum, c->lhead_offs); in ubifs_add_bud_to_log()
273 err = ubifs_write_node(c, ref, UBIFS_REF_NODE_SZ, c->lhead_lnum, in ubifs_add_bud_to_log()
411 c->lhead_lnum = ubifs_next_log_lnum(c, c->lhead_lnum); in ubifs_log_start_commit()
412 ubifs_assert(c, c->lhead_lnum != c->ltail_lnum); in ubifs_log_start_commit()
417 err = ubifs_leb_unmap(c, c->lhead_lnum); in ubifs_log_start_commit()
422 dbg_log("writing commit start at LEB %d:0, len %d", c->lhead_lnum, len); in ubifs_log_start_commit()
423 err = ubifs_leb_write(c, c->lhead_lnum, cs, 0, len); in ubifs_log_start_commit()
427 *ltail_lnum = c->lhead_lnum; in ubifs_log_start_commit()
431 c->lhead_lnum = ubifs_next_log_lnum(c, c->lhead_lnum); in ubifs_log_start_commit()
642 c->lhead_lnum); in ubifs_consolidate_log()
683 if (lnum == c->lhead_lnum) in ubifs_consolidate_log()
698 if (write_lnum == c->lhead_lnum) { in ubifs_consolidate_log()
709 } while (lnum != c->lhead_lnum); in ubifs_consolidate_log()
710 c->lhead_lnum = write_lnum; in ubifs_consolidate_log()
712 dbg_rcvry("new log head at %d:%d", c->lhead_lnum, c->lhead_offs); in ubifs_consolidate_log()