Lines Matching refs:zbranch
122 zbr = &znode->parent->zbranch[znode->iip]; in insert_old_idx_znode()
147 zbr = &znode->parent->zbranch[znode->iip]; in ins_clr_old_idx_znode()
218 struct ubifs_zbranch *zbr = &zn->zbranch[i]; in copy_znode()
576 zbr = &znode->zbranch[n]; in get_znode()
696 err = matches_name(c, &(*zn)->zbranch[*n], nm); in resolve_collision()
713 if (keys_cmp(c, &(*zn)->zbranch[*n].key, key)) { in resolve_collision()
757 err = matches_name(c, &(*zn)->zbranch[*n], nm); in resolve_collision()
777 if (keys_cmp(c, &znode->zbranch[nn].key, key)) in resolve_collision()
779 err = matches_name(c, &znode->zbranch[nn], nm); in resolve_collision()
886 cmp = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision()
914 if (keys_cmp(c, &(*zn)->zbranch[*n].key, key)) { in fallible_resolve_collision()
930 err = fallible_matches_name(c, &(*zn)->zbranch[*n], nm); in fallible_resolve_collision()
959 if (keys_cmp(c, &znode->zbranch[nn].key, key)) in fallible_resolve_collision()
961 err = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision()
982 o_znode->zbranch[o_n].lnum, o_znode->zbranch[o_n].offs, in fallible_resolve_collision()
983 o_znode->zbranch[o_n].len); in fallible_resolve_collision()
1032 if (matches_position(&znode->zbranch[nn], lnum, offs)) in resolve_collision_directly()
1042 if (keys_cmp(c, &znode->zbranch[nn].key, key)) in resolve_collision_directly()
1044 if (matches_position(&znode->zbranch[nn], lnum, offs)) { in resolve_collision_directly()
1060 if (keys_cmp(c, &znode->zbranch[nn].key, key)) in resolve_collision_directly()
1064 if (matches_position(&znode->zbranch[nn], lnum, offs)) in resolve_collision_directly()
1120 zbr = &zp->zbranch[path[--p]]; in dirty_cow_bottom_up()
1130 znode = znode->zbranch[path[p - 1]].znode; in dirty_cow_bottom_up()
1187 zbr = &znode->zbranch[*n]; in ubifs_lookup_level0()
1258 if (keys_cmp(c, key, &znode->zbranch[*n].key)) { in ubifs_lookup_level0()
1326 zbr = &znode->zbranch[*n]; in lookup_level0_dirty()
1363 if (keys_cmp(c, key, &znode->zbranch[*n].key)) { in lookup_level0_dirty()
1450 zt = &znode->zbranch[n]; in ubifs_tnc_locate()
1468 zbr = znode->zbranch[n]; in ubifs_tnc_locate()
1525 len = znode->zbranch[n].len; in ubifs_tnc_get_bu_keys()
1532 bu->zbranch[bu->cnt++] = znode->zbranch[n]; in ubifs_tnc_get_bu_keys()
1534 lnum = znode->zbranch[n].lnum; in ubifs_tnc_get_bu_keys()
1535 offs = ALIGN(znode->zbranch[n].offs + len, 8); in ubifs_tnc_get_bu_keys()
1546 zbr = &znode->zbranch[n]; in ubifs_tnc_get_bu_keys()
1583 bu->zbranch[bu->cnt++] = *zbr; in ubifs_tnc_get_bu_keys()
1622 if (key_block(c, &bu->zbranch[bu->cnt - 1].key) < block) in ubifs_tnc_get_bu_keys()
1740 int lnum = bu->zbranch[0].lnum, offs = bu->zbranch[0].offs, len, err, i; in ubifs_tnc_bulk_read()
1744 len = bu->zbranch[bu->cnt - 1].offs; in ubifs_tnc_bulk_read()
1745 len += bu->zbranch[bu->cnt - 1].len - offs; in ubifs_tnc_bulk_read()
1773 err = validate_data_node(c, buf, &bu->zbranch[i]); in ubifs_tnc_bulk_read()
1776 buf = buf + ALIGN(bu->zbranch[i].len, 8); in ubifs_tnc_bulk_read()
1823 err = tnc_read_node_nm(c, &znode->zbranch[n], node); in do_lookup_nm()
1885 key = &znode->zbranch[0].key; in correct_parent_keys()
1886 key1 = &znode->parent->zbranch[0].key; in correct_parent_keys()
1894 key1 = &znode->parent->zbranch[0].key; in correct_parent_keys()
1918 znode->zbranch[i] = znode->zbranch[i - 1]; in insert_zbranch()
1919 if (znode->zbranch[i].znode) in insert_zbranch()
1920 znode->zbranch[i].znode->iip = i; in insert_zbranch()
1926 znode->zbranch[i] = znode->zbranch[i - 1]; in insert_zbranch()
1928 znode->zbranch[n] = *zbr; in insert_zbranch()
2009 key1 = &znode->zbranch[n - 1].key; in tnc_insert()
2020 key1 = &znode->zbranch[0].key; in tnc_insert()
2023 key1 = &znode->zbranch[n].key; in tnc_insert()
2074 zn->zbranch[i] = znode->zbranch[keep + i]; in tnc_insert()
2077 if (zn->zbranch[i].znode) { in tnc_insert()
2078 zn->zbranch[i].znode->parent = zn; in tnc_insert()
2079 zn->zbranch[i].znode->iip = i; in tnc_insert()
2097 zbr->key = zn->zbranch[0].key; in tnc_insert()
2120 zi->zbranch[0].key = znode->zbranch[0].key; in tnc_insert()
2121 zi->zbranch[0].znode = znode; in tnc_insert()
2122 zi->zbranch[0].lnum = c->zroot.lnum; in tnc_insert()
2123 zi->zbranch[0].offs = c->zroot.offs; in tnc_insert()
2124 zi->zbranch[0].len = c->zroot.len; in tnc_insert()
2125 zi->zbranch[1].key = zn->zbranch[0].key; in tnc_insert()
2126 zi->zbranch[1].znode = zn; in tnc_insert()
2172 struct ubifs_zbranch *zbr = &znode->zbranch[n]; in ubifs_tnc_add()
2218 struct ubifs_zbranch *zbr = &znode->zbranch[n]; in ubifs_tnc_replace()
2249 zbr = &znode->zbranch[n]; in ubifs_tnc_replace()
2322 struct ubifs_zbranch *zbr = &znode->zbranch[n]; in ubifs_tnc_add_nm()
2386 dbg_tnck(&znode->zbranch[n].key, "deleting key "); in tnc_delete()
2388 zbr = &znode->zbranch[n]; in tnc_delete()
2399 znode->zbranch[i] = znode->zbranch[i + 1]; in tnc_delete()
2436 znode->zbranch[i] = znode->zbranch[i + 1]; in tnc_delete()
2437 if (znode->zbranch[i].znode) in tnc_delete()
2438 znode->zbranch[i].znode->iip = i; in tnc_delete()
2448 zbr = &znode->zbranch[0]; in tnc_delete()
2614 key = &znode->zbranch[n].key; in ubifs_tnc_remove_range()
2632 key = &znode->zbranch[i].key; in ubifs_tnc_remove_range()
2635 lnc_free(&znode->zbranch[i]); in ubifs_tnc_remove_range()
2636 err = ubifs_add_dirt(c, znode->zbranch[i].lnum, in ubifs_tnc_remove_range()
2637 znode->zbranch[i].len); in ubifs_tnc_remove_range()
2646 znode->zbranch[i - k] = znode->zbranch[i]; in ubifs_tnc_remove_range()
2802 zbr = &znode->zbranch[n]; in ubifs_tnc_next_ent()
3030 if (znode->zbranch[n].lnum == lnum && znode->zbranch[n].offs == offs) in lookup_znode()
3055 if (znode->zbranch[n].lnum == lnum && in lookup_znode()
3056 znode->zbranch[n].offs == offs) in lookup_znode()
3059 if (keys_cmp(c, &znode->zbranch[n].key, key) < 0) in lookup_znode()
3077 if (znode->zbranch[n].lnum == lnum && in lookup_znode()
3078 znode->zbranch[n].offs == offs) in lookup_znode()
3081 if (keys_cmp(c, &znode->zbranch[n].key, key) > 0) in lookup_znode()
3144 zbr = &znode->zbranch[n]; in is_leaf_node_in_tnc()
3162 if (keys_cmp(c, key, &znode->zbranch[n].key)) in is_leaf_node_in_tnc()
3164 zbr = &znode->zbranch[n]; in is_leaf_node_in_tnc()
3178 if (keys_cmp(c, key, &znode->zbranch[n].key)) in is_leaf_node_in_tnc()
3180 zbr = &znode->zbranch[n]; in is_leaf_node_in_tnc()
3313 key = &znode->zbranch[n].key; in dbg_check_inode_size()