Lines Matching refs:zbr

863 	const struct ubifs_zbranch *zbr;  in ubifs_dump_znode()  local
868 zbr = &znode->parent->zbranch[znode->iip]; in ubifs_dump_znode()
870 zbr = &c->zroot; in ubifs_dump_znode()
873 znode, zbr->lnum, zbr->offs, zbr->len, znode->parent, znode->iip, in ubifs_dump_znode()
883 zbr = &znode->zbranch[n]; in ubifs_dump_znode()
886 n, zbr->znode, zbr->lnum, zbr->offs, zbr->len, in ubifs_dump_znode()
887 dbg_snprintf_key(c, &zbr->key, key_buf, in ubifs_dump_znode()
891 n, zbr->znode, zbr->lnum, zbr->offs, zbr->len, in ubifs_dump_znode()
892 dbg_snprintf_key(c, &zbr->key, key_buf, in ubifs_dump_znode()
1275 static int dbg_check_znode(struct ubifs_info *c, struct ubifs_zbranch *zbr) in dbg_check_znode() argument
1277 struct ubifs_znode *znode = zbr->znode; in dbg_check_znode()
1294 if (zbr->len == 0) in dbg_check_znode()
1332 err = ubifs_search_zbranch(c, zp, &zbr->key, &n); in dbg_check_znode()
1358 min = &zbr->key; in dbg_check_znode()
1382 if (zbr != &c->zroot) { in dbg_check_znode()
1524 struct ubifs_zbranch *zbr; in dbg_check_tnc() local
1527 zbr = &c->zroot; in dbg_check_tnc()
1529 zbr = &znode->parent->zbranch[znode->iip]; in dbg_check_tnc()
1531 err = dbg_check_znode(c, zbr); in dbg_check_tnc()
1612 struct ubifs_zbranch *zbr; in dbg_walk_index() local
1633 zbr = &znode->zbranch[0]; in dbg_walk_index()
1634 child = zbr->znode; in dbg_walk_index()
1636 child = ubifs_load_znode(c, zbr, znode, 0); in dbg_walk_index()
1641 zbr->znode = child; in dbg_walk_index()
1664 zbr = &znode->zbranch[idx]; in dbg_walk_index()
1665 err = leaf_cb(c, zbr, priv); in dbg_walk_index()
1668 err, zbr->lnum, zbr->offs); in dbg_walk_index()
1681 zbr = &znode->zbranch[idx]; in dbg_walk_index()
1682 child = zbr->znode; in dbg_walk_index()
1684 child = ubifs_load_znode(c, zbr, znode, idx); in dbg_walk_index()
1689 zbr->znode = child; in dbg_walk_index()
1701 zbr = &znode->zbranch[0]; in dbg_walk_index()
1702 child = zbr->znode; in dbg_walk_index()
1704 child = ubifs_load_znode(c, zbr, znode, 0); in dbg_walk_index()
1709 zbr->znode = child; in dbg_walk_index()
1720 zbr = &znode->parent->zbranch[znode->iip]; in dbg_walk_index()
1722 zbr = &c->zroot; in dbg_walk_index()
1723 ubifs_msg(c, "dump of znode at LEB %d:%d", zbr->lnum, zbr->offs); in dbg_walk_index()
1959 struct ubifs_zbranch *zbr; in read_add_inode() local
1978 zbr = &znode->zbranch[n]; in read_add_inode()
1979 if (zbr->len < UBIFS_INO_NODE_SZ) { in read_add_inode()
1981 (unsigned long)inum, zbr->len); in read_add_inode()
1985 ino = kmalloc(zbr->len, GFP_NOFS); in read_add_inode()
1989 err = ubifs_tnc_read_node(c, zbr, ino); in read_add_inode()
1992 zbr->lnum, zbr->offs, err); in read_add_inode()
2024 static int check_leaf(struct ubifs_info *c, struct ubifs_zbranch *zbr, in check_leaf() argument
2030 int err, type = key_type(c, &zbr->key); in check_leaf()
2033 if (zbr->len < UBIFS_CH_SZ) { in check_leaf()
2035 zbr->len, zbr->lnum, zbr->offs); in check_leaf()
2039 node = kmalloc(zbr->len, GFP_NOFS); in check_leaf()
2043 err = ubifs_tnc_read_node(c, zbr, node); in check_leaf()
2046 zbr->lnum, zbr->offs, err); in check_leaf()
2064 type, zbr->lnum, zbr->offs); in check_leaf()
2081 ubifs_assert(zbr->len >= UBIFS_DATA_NODE_SZ); in check_leaf()
2102 zbr->lnum, zbr->offs, fscki->size); in check_leaf()
2111 ubifs_assert(zbr->len >= UBIFS_DENT_NODE_SZ); in check_leaf()
2160 ubifs_msg(c, "dump of node at LEB %d:%d", zbr->lnum, zbr->offs); in check_leaf()
2194 struct ubifs_zbranch *zbr; in check_inodes() local
2279 zbr = &znode->zbranch[n]; in check_inodes()
2280 ino = kmalloc(zbr->len, GFP_NOFS); in check_inodes()
2284 err = ubifs_tnc_read_node(c, zbr, ino); in check_inodes()
2287 zbr->lnum, zbr->offs, err); in check_inodes()
2293 (unsigned long)fscki->inum, zbr->lnum, zbr->offs); in check_inodes()