Lines Matching refs:lhead_lnum
94 h = (long long)c->lhead_lnum * c->leb_size + c->lhead_offs; in empty_log_bytes()
101 else if (c->lhead_lnum != c->ltail_lnum) in empty_log_bytes()
235 c->lhead_lnum = ubifs_next_log_lnum(c, c->lhead_lnum); in ubifs_add_bud_to_log()
236 ubifs_assert(c, c->lhead_lnum != c->ltail_lnum); in ubifs_add_bud_to_log()
242 err = ubifs_leb_unmap(c, c->lhead_lnum); in ubifs_add_bud_to_log()
261 c->lhead_lnum, c->lhead_offs); in ubifs_add_bud_to_log()
262 err = ubifs_write_node(c, ref, UBIFS_REF_NODE_SZ, c->lhead_lnum, in ubifs_add_bud_to_log()
422 c->lhead_lnum = ubifs_next_log_lnum(c, c->lhead_lnum); in ubifs_log_start_commit()
423 ubifs_assert(c, c->lhead_lnum != c->ltail_lnum); in ubifs_log_start_commit()
428 err = ubifs_leb_unmap(c, c->lhead_lnum); in ubifs_log_start_commit()
433 dbg_log("writing commit start at LEB %d:0, len %d", c->lhead_lnum, len); in ubifs_log_start_commit()
434 err = ubifs_leb_write(c, c->lhead_lnum, cs, 0, len); in ubifs_log_start_commit()
438 *ltail_lnum = c->lhead_lnum; in ubifs_log_start_commit()
651 c->lhead_lnum); in ubifs_consolidate_log()
692 if (lnum == c->lhead_lnum) in ubifs_consolidate_log()
707 if (write_lnum == c->lhead_lnum) { in ubifs_consolidate_log()
718 } while (lnum != c->lhead_lnum); in ubifs_consolidate_log()
719 c->lhead_lnum = write_lnum; in ubifs_consolidate_log()
721 dbg_rcvry("new log head at %d:%d", c->lhead_lnum, c->lhead_offs); in ubifs_consolidate_log()