Lines Matching defs:offs

30  * @offs: node offset
46 int offs;
247 r->lnum, r->offs, r->len, r->deletion, r->sqnum);
253 err = ubifs_tnc_add_nm(c, &r->key, r->lnum, r->offs,
278 err = ubifs_tnc_add(c, &r->key, r->lnum, r->offs,
366 * @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
433 static int insert_dent(struct ubifs_info *c, int lnum, int offs, int len,
441 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs);
458 r->offs = offs;
670 int err = 0, used = 0, lnum = b->bud->lnum, offs = b->bud->start;
675 dbg_mnt("replay bud LEB %d, head %d, offs %d, is_last %d",
676 lnum, b->bud->jhead, offs, is_last);
685 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead);
687 sleb = ubifs_scan(c, lnum, offs, c->sbuf, 0);
706 * At this point lprops thinks that this LEB has 'c->leb_size - offs'
711 * sleb->endpt', and the space in the 'lnum' LEB between 'offs' and
746 err = insert_node(c, lnum, snod->offs, snod->len, hash,
758 err = insert_node(c, lnum, snod->offs, snod->len, hash,
772 err = insert_dent(c, lnum, snod->offs, snod->len, hash,
798 err = insert_node(c, lnum, snod->offs, snod->len, hash,
807 snod->type, lnum, snod->offs);
820 ubifs_assert(c, sleb->endpt - offs >= used);
823 b->dirty = sleb->endpt - offs - used;
833 ubifs_err(c, "bad node is at LEB %d:%d", lnum, snod->offs);
834 ubifs_dump_node(c, snod->node, c->leb_size - snod->offs);
883 * @offs: bud start offset
890 static int add_replay_bud(struct ubifs_info *c, int lnum, int offs, int jhead,
897 dbg_mnt("add replay bud LEB %d:%d, head %d", lnum, offs, jhead);
910 bud->start = offs;
947 unsigned int offs = le32_to_cpu(ref->offs);
951 * ref->offs may point to the end of LEB when the journal head points
953 * So this is why we require 'offs > c->leb_size'.
956 lnum < c->main_first || offs > c->leb_size ||
957 offs & (c->min_io_size - 1))
963 if (bud->jhead == jhead && bud->start <= offs)
965 ubifs_err(c, "bud at LEB %d:%d was already referred", lnum, offs);
976 * @offs: offset to start replaying from
983 static int replay_log_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf)
990 dbg_mnt("replay log LEB %d:%d", lnum, offs);
991 sleb = ubifs_scan(c, lnum, offs, sbuf, c->need_recovery);
1000 sleb = ubifs_recover_log_leb(c, lnum, offs, sbuf);
1022 lnum, offs);
1027 lnum, offs,
1058 if (snod->offs != 0) {
1096 le32_to_cpu(ref->offs),
1106 if (snod->offs != 0) {
1129 lnum, offs + snod->offs);
1130 ubifs_dump_node(c, snod->node, c->leb_size - snod->offs);