Home
last modified time | relevance | path

Searched refs:zbr (Results 1 – 7 of 7) sorted by relevance

/fs/ubifs/
Dtnc.c121 struct ubifs_zbranch *zbr; in insert_old_idx_znode() local
123 zbr = &znode->parent->zbranch[znode->iip]; in insert_old_idx_znode()
124 if (zbr->len) in insert_old_idx_znode()
125 return insert_old_idx(c, zbr->lnum, zbr->offs); in insert_old_idx_znode()
146 struct ubifs_zbranch *zbr; in ins_clr_old_idx_znode() local
148 zbr = &znode->parent->zbranch[znode->iip]; in ins_clr_old_idx_znode()
149 if (zbr->len) { in ins_clr_old_idx_znode()
150 err = insert_old_idx(c, zbr->lnum, zbr->offs); in ins_clr_old_idx_znode()
153 zbr->lnum = 0; in ins_clr_old_idx_znode()
154 zbr->offs = 0; in ins_clr_old_idx_znode()
[all …]
Dtnc_misc.c141 const struct ubifs_zbranch *zbr = &znode->zbranch[0]; in ubifs_search_zbranch() local
147 cmp = keys_cmp(c, key, &zbr[mid].key); in ubifs_search_zbranch()
163 ubifs_assert(keys_cmp(c, key, &zbr[0].key) < 0); in ubifs_search_zbranch()
165 ubifs_assert(keys_cmp(c, key, &zbr[*n].key) > 0); in ubifs_search_zbranch()
167 ubifs_assert(keys_cmp(c, key, &zbr[*n + 1].key) < 0); in ubifs_search_zbranch()
306 struct ubifs_zbranch *zbr = &znode->zbranch[i]; in read_znode() local
308 key_read(c, &br->key, &zbr->key); in read_znode()
309 zbr->lnum = le32_to_cpu(br->lnum); in read_znode()
310 zbr->offs = le32_to_cpu(br->offs); in read_znode()
311 zbr->len = le32_to_cpu(br->len); in read_znode()
[all …]
Dtnc_commit.c49 struct ubifs_zbranch *zbr = &znode->zbranch[i]; in make_idx_node() local
51 key_write_idx(c, &zbr->key, &br->key); in make_idx_node()
52 br->lnum = cpu_to_le32(zbr->lnum); in make_idx_node()
53 br->offs = cpu_to_le32(zbr->offs); in make_idx_node()
54 br->len = cpu_to_le32(zbr->len); in make_idx_node()
55 if (!zbr->lnum || !zbr->len) { in make_idx_node()
58 if (zbr->znode) in make_idx_node()
59 dbg_dump_znode(c, zbr->znode); in make_idx_node()
75 struct ubifs_zbranch *zbr; in make_idx_node() local
77 zbr = &zp->zbranch[znode->iip]; in make_idx_node()
[all …]
Ddebug.c928 const struct ubifs_zbranch *zbr; in dbg_dump_znode() local
933 zbr = &znode->parent->zbranch[znode->iip]; in dbg_dump_znode()
935 zbr = &c->zroot; in dbg_dump_znode()
938 " child_cnt %d flags %lx\n", znode, zbr->lnum, zbr->offs, in dbg_dump_znode()
939 zbr->len, znode->parent, znode->iip, znode->level, in dbg_dump_znode()
949 zbr = &znode->zbranch[n]; in dbg_dump_znode()
952 "%s\n", n, zbr->znode, zbr->lnum, in dbg_dump_znode()
953 zbr->offs, zbr->len, in dbg_dump_znode()
954 dbg_snprintf_key(c, &zbr->key, in dbg_dump_znode()
959 "%s\n", n, zbr->znode, zbr->lnum, in dbg_dump_znode()
[all …]
Dorphan.c837 static int dbg_orphan_check(struct ubifs_info *c, struct ubifs_zbranch *zbr, in dbg_orphan_check() argument
844 inum = key_inum(c, &zbr->key); in dbg_orphan_check()
847 if (key_type(c, &zbr->key) != UBIFS_INO_KEY) in dbg_orphan_check()
849 (unsigned long)inum, key_type(c, &zbr->key)); in dbg_orphan_check()
852 err = ubifs_tnc_read_node(c, zbr, ci->node); in dbg_orphan_check()
Dubifs.h1618 struct ubifs_zbranch *zbr,
1620 int ubifs_tnc_read_node(struct ubifs_info *c, struct ubifs_zbranch *zbr,
Ddebug.h28 struct ubifs_zbranch *zbr, void *priv);