• Home
  • Raw
  • Download

Lines Matching refs:parent

143 		if (!new_node->parent) {  in hfs_brec_insert()
145 new_node->parent = tree->root; in hfs_brec_insert()
147 fd->bnode = hfs_bnode_find(tree, new_node->parent); in hfs_brec_insert()
179 struct hfs_bnode *node, *parent; in hfs_brec_remove() local
196 if (!node->parent) in hfs_brec_remove()
198 parent = hfs_bnode_find(tree, node->parent); in hfs_brec_remove()
199 if (IS_ERR(parent)) in hfs_brec_remove()
200 return PTR_ERR(parent); in hfs_brec_remove()
202 node = fd->bnode = parent; in hfs_brec_remove()
247 new_node->parent = node->parent; in hfs_bnode_split()
353 struct hfs_bnode *node, *new_node, *parent; in hfs_brec_update_parent() local
361 if (!node->parent) in hfs_brec_update_parent()
365 parent = hfs_bnode_find(tree, node->parent); in hfs_brec_update_parent()
366 if (IS_ERR(parent)) in hfs_brec_update_parent()
367 return PTR_ERR(parent); in hfs_brec_update_parent()
368 __hfs_brec_find(parent, fd); in hfs_brec_update_parent()
369 hfs_bnode_dump(parent); in hfs_brec_update_parent()
380 end_rec_off = tree->node_size - (parent->num_recs + 1) * 2; in hfs_brec_update_parent()
385 end_off = hfs_bnode_read_u16(parent, end_rec_off); in hfs_brec_update_parent()
389 fd->bnode = parent; in hfs_brec_update_parent()
393 parent = fd->bnode; in hfs_brec_update_parent()
396 end_rec_off = tree->node_size - (parent->num_recs + 1) * 2; in hfs_brec_update_parent()
400 end_off = start_off = hfs_bnode_read_u16(parent, rec_off); in hfs_brec_update_parent()
401 hfs_bnode_write_u16(parent, rec_off, start_off + diff); in hfs_brec_update_parent()
406 end_off = hfs_bnode_read_u16(parent, rec_off); in hfs_brec_update_parent()
407 hfs_bnode_write_u16(parent, rec_off, end_off + diff); in hfs_brec_update_parent()
409 hfs_bnode_move(parent, start_off + diff, start_off, in hfs_brec_update_parent()
412 hfs_bnode_copy(parent, fd->keyoffset, node, 14, newkeylen); in hfs_brec_update_parent()
414 hfs_bnode_write_u8(parent, fd->keyoffset, newkeylen - 1); in hfs_brec_update_parent()
415 hfs_bnode_dump(parent); in hfs_brec_update_parent()
418 node = parent; in hfs_brec_update_parent()
423 fd->bnode = hfs_bnode_find(tree, new_node->parent); in hfs_brec_update_parent()
441 if (!rec && node->parent) in hfs_brec_update_parent()
476 new_node->parent = 0; in hfs_btree_inc_height()
494 node->parent = tree->root; in hfs_btree_inc_height()