Lines Matching refs:lhead_lnum
124 h = (long long)c->lhead_lnum * c->leb_size + c->lhead_offs; in empty_log_bytes()
260 c->lhead_lnum = next_log_lnum(c, c->lhead_lnum); in ubifs_add_bud_to_log()
266 err = ubifs_leb_unmap(c, c->lhead_lnum); in ubifs_add_bud_to_log()
285 c->lhead_lnum, c->lhead_offs); in ubifs_add_bud_to_log()
286 err = ubifs_write_node(c, ref, UBIFS_REF_NODE_SZ, c->lhead_lnum, in ubifs_add_bud_to_log()
428 c->lhead_lnum = next_log_lnum(c, c->lhead_lnum); in ubifs_log_start_commit()
434 err = ubifs_leb_unmap(c, c->lhead_lnum); in ubifs_log_start_commit()
440 dbg_log("writing commit start at LEB %d:0, len %d", c->lhead_lnum, len); in ubifs_log_start_commit()
441 err = ubifs_leb_write(c, c->lhead_lnum, cs, 0, len, UBI_SHORTTERM); in ubifs_log_start_commit()
445 *ltail_lnum = c->lhead_lnum; in ubifs_log_start_commit()
449 c->lhead_lnum = next_log_lnum(c, c->lhead_lnum); in ubifs_log_start_commit()
672 c->lhead_lnum); in ubifs_consolidate_log()
713 if (lnum == c->lhead_lnum) in ubifs_consolidate_log()
728 if (write_lnum == c->lhead_lnum) { in ubifs_consolidate_log()
739 } while (lnum != c->lhead_lnum); in ubifs_consolidate_log()
740 c->lhead_lnum = write_lnum; in ubifs_consolidate_log()
742 dbg_rcvry("new log head at %d:%d", c->lhead_lnum, c->lhead_offs); in ubifs_consolidate_log()