Lines Matching refs:num_recs

92 	end_rec_off = tree->node_size - (node->num_recs + 1) * 2;  in hfs_brec_insert()
109 node->num_recs++; in hfs_brec_insert()
112 offsetof(struct hfs_bnode_desc, num_recs), in hfs_brec_insert()
113 node->num_recs); in hfs_brec_insert()
189 end_off = tree->node_size - (node->num_recs + 1) * 2; in hfs_brec_remove()
198 if (!--node->num_recs) { in hfs_brec_remove()
212 offsetof(struct hfs_bnode_desc, num_recs), in hfs_brec_remove()
213 node->num_recs); in hfs_brec_remove()
240 int num_recs, new_rec_off, new_off, old_rec_off; in hfs_bnode_split() local
268 size = tree->node_size / 2 - node->num_recs * 2 - 14; in hfs_bnode_split()
270 num_recs = 1; in hfs_bnode_split()
276 if (++num_recs < node->num_recs) in hfs_bnode_split()
286 if (fd->record + 1 < num_recs) { in hfs_bnode_split()
291 num_recs--; in hfs_bnode_split()
297 fd->record -= num_recs; in hfs_bnode_split()
301 new_node->num_recs = node->num_recs - num_recs; in hfs_bnode_split()
302 node->num_recs = num_recs; in hfs_bnode_split()
307 num_recs = new_node->num_recs; in hfs_bnode_split()
309 while (num_recs) { in hfs_bnode_split()
315 num_recs--; in hfs_bnode_split()
325 node_desc.num_recs = cpu_to_be16(new_node->num_recs); in hfs_bnode_split()
333 node_desc.num_recs = cpu_to_be16(node->num_recs); in hfs_bnode_split()
390 end_rec_off = tree->node_size - (parent->num_recs + 1) * 2; in hfs_brec_update_parent()
407 (parent->num_recs + 1) * 2; in hfs_brec_update_parent()
485 new_node->num_recs = 0; in hfs_btree_inc_height()
488 new_node->num_recs = 1; in hfs_btree_inc_height()
499 node_desc.num_recs = cpu_to_be16(new_node->num_recs); in hfs_btree_inc_height()