Lines Matching refs:offs

50 	int offs;  member
217 r->lnum, r->offs, r->len, r->deletion, r->sqnum); in apply_replay_entry()
226 err = ubifs_tnc_add_nm(c, &r->key, r->lnum, r->offs, in apply_replay_entry()
246 err = ubifs_tnc_add(c, &r->key, r->lnum, r->offs, in apply_replay_entry()
349 static int insert_node(struct ubifs_info *c, int lnum, int offs, int len, in insert_node() argument
356 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs); in insert_node()
368 r->offs = offs; in insert_node()
397 static int insert_dent(struct ubifs_info *c, int lnum, int offs, int len, in insert_dent() argument
404 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs); in insert_dent()
421 r->offs = offs; in insert_dent()
537 int err = 0, used = 0, lnum = b->bud->lnum, offs = b->bud->start; in replay_bud() local
542 lnum, b->bud->jhead, offs, is_last); in replay_bud()
551 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead); in replay_bud()
553 sleb = ubifs_scan(c, lnum, offs, c->sbuf, 0); in replay_bud()
600 err = insert_node(c, lnum, snod->offs, snod->len, in replay_bud()
612 err = insert_node(c, lnum, snod->offs, snod->len, in replay_bud()
626 err = insert_dent(c, lnum, snod->offs, snod->len, in replay_bud()
652 err = insert_node(c, lnum, snod->offs, snod->len, in replay_bud()
659 snod->type, lnum, snod->offs); in replay_bud()
668 ubifs_assert(sleb->endpt - offs >= used); in replay_bud()
671 b->dirty = sleb->endpt - offs - used; in replay_bud()
681 ubifs_err(c, "bad node is at LEB %d:%d", lnum, snod->offs); in replay_bud()
738 static int add_replay_bud(struct ubifs_info *c, int lnum, int offs, int jhead, in add_replay_bud() argument
744 dbg_mnt("add replay bud LEB %d:%d, head %d", lnum, offs, jhead); in add_replay_bud()
757 bud->start = offs; in add_replay_bud()
783 unsigned int offs = le32_to_cpu(ref->offs); in validate_ref() local
792 lnum < c->main_first || offs > c->leb_size || in validate_ref()
793 offs & (c->min_io_size - 1)) in validate_ref()
799 if (bud->jhead == jhead && bud->start <= offs) in validate_ref()
801 ubifs_err(c, "bud at LEB %d:%d was already referred", lnum, offs); in validate_ref()
819 static int replay_log_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf) in replay_log_leb() argument
826 dbg_mnt("replay log LEB %d:%d", lnum, offs); in replay_log_leb()
827 sleb = ubifs_scan(c, lnum, offs, sbuf, c->need_recovery); in replay_log_leb()
836 sleb = ubifs_recover_log_leb(c, lnum, offs, sbuf); in replay_log_leb()
858 lnum, offs); in replay_log_leb()
863 lnum, offs, in replay_log_leb()
886 if (snod->offs != 0) { in replay_log_leb()
919 le32_to_cpu(ref->offs), in replay_log_leb()
929 if (snod->offs != 0) { in replay_log_leb()
952 lnum, offs + snod->offs); in replay_log_leb()