Lines Matching defs:offs

31  * @offs: node offset
47 int offs;
248 r->lnum, r->offs, r->len, r->deletion, r->sqnum);
254 err = ubifs_tnc_add_nm(c, &r->key, r->lnum, r->offs,
279 err = ubifs_tnc_add(c, &r->key, r->lnum, r->offs,
367 * @offs: node offset
383 static int insert_node(struct ubifs_info *c, int lnum, int offs, int len,
390 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs);
402 r->offs = offs;
419 * @offs: node offset
432 static int insert_dent(struct ubifs_info *c, int lnum, int offs, int len,
440 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs);
457 r->offs = offs;
669 int err = 0, used = 0, lnum = b->bud->lnum, offs = b->bud->start;
674 dbg_mnt("replay bud LEB %d, head %d, offs %d, is_last %d",
675 lnum, b->bud->jhead, offs, is_last);
684 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead);
686 sleb = ubifs_scan(c, lnum, offs, c->sbuf, 0);
705 * At this point lprops thinks that this LEB has 'c->leb_size - offs'
710 * sleb->endpt', and the space in the 'lnum' LEB between 'offs' and
745 err = insert_node(c, lnum, snod->offs, snod->len, hash,
757 err = insert_node(c, lnum, snod->offs, snod->len, hash,
771 err = insert_dent(c, lnum, snod->offs, snod->len, hash,
797 err = insert_node(c, lnum, snod->offs, snod->len, hash,
806 snod->type, lnum, snod->offs);
819 ubifs_assert(c, sleb->endpt - offs >= used);
822 b->dirty = sleb->endpt - offs - used;
832 ubifs_err(c, "bad node is at LEB %d:%d", lnum, snod->offs);
833 ubifs_dump_node(c, snod->node, c->leb_size - snod->offs);
882 * @offs: bud start offset
889 static int add_replay_bud(struct ubifs_info *c, int lnum, int offs, int jhead,
896 dbg_mnt("add replay bud LEB %d:%d, head %d", lnum, offs, jhead);
909 bud->start = offs;
946 unsigned int offs = le32_to_cpu(ref->offs);
950 * ref->offs may point to the end of LEB when the journal head points
952 * So this is why we require 'offs > c->leb_size'.
955 lnum < c->main_first || offs > c->leb_size ||
956 offs & (c->min_io_size - 1))
962 if (bud->jhead == jhead && bud->start <= offs)
964 ubifs_err(c, "bud at LEB %d:%d was already referred", lnum, offs);
975 * @offs: offset to start replaying from
982 static int replay_log_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf)
989 dbg_mnt("replay log LEB %d:%d", lnum, offs);
990 sleb = ubifs_scan(c, lnum, offs, sbuf, c->need_recovery);
999 sleb = ubifs_recover_log_leb(c, lnum, offs, sbuf);
1021 lnum, offs);
1026 lnum, offs,
1057 if (snod->offs != 0) {
1095 le32_to_cpu(ref->offs),
1105 if (snod->offs != 0) {
1128 lnum, offs + snod->offs);
1129 ubifs_dump_node(c, snod->node, c->leb_size - snod->offs);