Lines Matching refs:num_recs

94 	end_rec_off = tree->node_size - (node->num_recs + 1) * 2;  in hfs_brec_insert()
111 node->num_recs++; in hfs_brec_insert()
113 hfs_bnode_write_u16(node, offsetof(struct hfs_bnode_desc, num_recs), node->num_recs); in hfs_brec_insert()
187 end_off = tree->node_size - (node->num_recs + 1) * 2; in hfs_brec_remove()
196 if (!--node->num_recs) { in hfs_brec_remove()
209 hfs_bnode_write_u16(node, offsetof(struct hfs_bnode_desc, num_recs), node->num_recs); in hfs_brec_remove()
236 int num_recs, new_rec_off, new_off, old_rec_off; in hfs_bnode_split() local
264 size = tree->node_size / 2 - node->num_recs * 2 - 14; in hfs_bnode_split()
266 num_recs = 1; in hfs_bnode_split()
272 if (++num_recs < node->num_recs) in hfs_bnode_split()
282 if (fd->record + 1 < num_recs) { in hfs_bnode_split()
287 num_recs--; in hfs_bnode_split()
293 fd->record -= num_recs; in hfs_bnode_split()
297 new_node->num_recs = node->num_recs - num_recs; in hfs_bnode_split()
298 node->num_recs = num_recs; in hfs_bnode_split()
303 num_recs = new_node->num_recs; in hfs_bnode_split()
305 while (num_recs) { in hfs_bnode_split()
311 num_recs--; in hfs_bnode_split()
321 node_desc.num_recs = cpu_to_be16(new_node->num_recs); in hfs_bnode_split()
329 node_desc.num_recs = cpu_to_be16(node->num_recs); in hfs_bnode_split()
385 end_rec_off = tree->node_size - (parent->num_recs + 1) * 2; in hfs_brec_update_parent()
401 end_rec_off = tree->node_size - (parent->num_recs + 1) * 2; in hfs_brec_update_parent()
481 new_node->num_recs = 0; in hfs_btree_inc_height()
484 new_node->num_recs = 1; in hfs_btree_inc_height()
495 node_desc.num_recs = cpu_to_be16(new_node->num_recs); in hfs_btree_inc_height()