Lines Matching refs:num_recs

333 		new_node->num_recs = 0;  in hfsplus_btree_add_level()
336 new_node->num_recs = 1; in hfsplus_btree_add_level()
347 node_desc.num_rec = cpu_to_be16(new_node->num_recs); in hfsplus_btree_add_level()
379 int num_recs, new_rec_off, new_off, old_rec_off; in hfsplus_bnode_split() local
398 num_recs = 1; in hfsplus_bnode_split()
404 num_recs++; in hfsplus_bnode_split()
405 if (num_recs < node->num_recs) in hfsplus_bnode_split()
413 if (fd->record + 1 < num_recs) { in hfsplus_bnode_split()
418 num_recs--; in hfsplus_bnode_split()
424 fd->record -= num_recs; in hfsplus_bnode_split()
428 new_node->num_recs = node->num_recs - num_recs; in hfsplus_bnode_split()
429 node->num_recs = num_recs; in hfsplus_bnode_split()
434 num_recs = new_node->num_recs; in hfsplus_bnode_split()
436 while (num_recs) { in hfsplus_bnode_split()
442 num_recs--; in hfsplus_bnode_split()
452 node_desc.num_rec = cpu_to_be16(new_node->num_recs); in hfsplus_bnode_split()
460 node_desc.num_rec = cpu_to_be16(node->num_recs); in hfsplus_bnode_split()
510 end_rec_off = tree->node_size - (node->num_recs + 1) * 2; in hfsplus_bnode_insert_rec()
526 node->num_recs++; in hfsplus_bnode_insert_rec()
528 hfsplus_bnode_write_u16(node, offsetof(hfsplus_btree_node_desc, num_rec), node->num_recs); in hfsplus_bnode_insert_rec()
607 end_rec_off = tree->node_size - (parent->num_recs + 1) * 2; in hfsplus_update_idx_rec()
623 end_rec_off = tree->node_size - (parent->num_recs + 1) * 2; in hfsplus_update_idx_rec()
683 end_off = tree->node_size - (node->num_recs + 1) * 2; in hfsplus_bnode_remove_rec()
691 if (!--node->num_recs) { in hfsplus_bnode_remove_rec()
704 hfsplus_bnode_write_u16(node, offsetof(hfsplus_btree_node_desc, num_rec), node->num_recs); in hfsplus_bnode_remove_rec()
887 node->num_recs = be16_to_cpu(desc->num_rec); in hfsplus_find_bnode()
901 for (i = 1; i <= node->num_recs; off = next_off, i++) { in hfsplus_find_bnode()