Lines Matching refs:ncmax

131 nilfs_btree_node_dptrs(const struct nilfs_btree_node *node, int ncmax)  in nilfs_btree_node_dptrs()  argument
133 return (__le64 *)(nilfs_btree_node_dkeys(node) + ncmax); in nilfs_btree_node_dptrs()
150 int ncmax) in nilfs_btree_node_get_ptr() argument
152 return le64_to_cpu(*(nilfs_btree_node_dptrs(node, ncmax) + index)); in nilfs_btree_node_get_ptr()
157 int ncmax) in nilfs_btree_node_set_ptr() argument
159 *(nilfs_btree_node_dptrs(node, ncmax) + index) = cpu_to_le64(ptr); in nilfs_btree_node_set_ptr()
163 int level, int nchildren, int ncmax, in nilfs_btree_node_init() argument
175 dptrs = nilfs_btree_node_dptrs(node, ncmax); in nilfs_btree_node_init()
240 __u64 key, __u64 ptr, int ncmax) in nilfs_btree_node_insert() argument
247 dptrs = nilfs_btree_node_dptrs(node, ncmax); in nilfs_btree_node_insert()
263 __u64 *keyp, __u64 *ptrp, int ncmax) in nilfs_btree_node_delete() argument
272 dptrs = nilfs_btree_node_dptrs(node, ncmax); in nilfs_btree_node_delete()
468 int ncmax; /* nof children in the parent node */ member
504 n > 0 && i < ra->ncmax; n--, i++) { in __nilfs_btree_get_block()
505 ptr2 = nilfs_btree_node_get_ptr(ra->node, i, ra->ncmax); in __nilfs_btree_get_block()
555 int level, index, found, ncmax, ret; in nilfs_btree_do_lookup() local
568 ncmax = nilfs_btree_nchildren_per_block(btree); in nilfs_btree_do_lookup()
574 &p.ncmax); in nilfs_btree_do_lookup()
591 if (index < ncmax) { in nilfs_btree_do_lookup()
592 ptr = nilfs_btree_node_get_ptr(node, index, ncmax); in nilfs_btree_do_lookup()
615 int index, level, ncmax, ret; in nilfs_btree_do_lookup_last() local
626 ncmax = nilfs_btree_nchildren_per_block(btree); in nilfs_btree_do_lookup_last()
636 ptr = nilfs_btree_node_get_ptr(node, index, ncmax); in nilfs_btree_do_lookup_last()
713 int ret, cnt, index, maxlevel, ncmax; in nilfs_btree_lookup_contig() local
736 node = nilfs_btree_get_node(btree, path, level, &ncmax); in nilfs_btree_lookup_contig()
743 ptr2 = nilfs_btree_node_get_ptr(node, index, ncmax); in nilfs_btree_lookup_contig()
758 p.node = nilfs_btree_get_node(btree, path, level + 1, &p.ncmax); in nilfs_btree_lookup_contig()
764 ptr2 = nilfs_btree_node_get_ptr(p.node, p.index, p.ncmax); in nilfs_btree_lookup_contig()
775 ncmax = nilfs_btree_nchildren_per_block(btree); in nilfs_btree_lookup_contig()
1017 int level, ncmax; in nilfs_btree_find_near() local
1025 node = nilfs_btree_get_node(btree, path, level, &ncmax); in nilfs_btree_find_near()
1028 ncmax); in nilfs_btree_find_near()
1034 node = nilfs_btree_get_node(btree, path, level, &ncmax); in nilfs_btree_find_near()
1036 ncmax); in nilfs_btree_find_near()
1070 int pindex, level, ncmax, ncblk, ret; in nilfs_btree_prepare_insert() local
1099 parent = nilfs_btree_get_node(btree, path, level + 1, &ncmax); in nilfs_btree_prepare_insert()
1105 ncmax); in nilfs_btree_prepare_insert()
1123 ncmax); in nilfs_btree_prepare_insert()
1444 int pindex, dindex, level, ncmin, ncmax, ncblk, ret; in nilfs_btree_prepare_delete() local
1468 parent = nilfs_btree_get_node(btree, path, level + 1, &ncmax); in nilfs_btree_prepare_delete()
1475 ncmax); in nilfs_btree_prepare_delete()
1495 ncmax); in nilfs_btree_prepare_delete()
1702 int nchildren, ncmax, i, ret; in nilfs_btree_gather_data() local
1709 ncmax = NILFS_BTREE_ROOT_NCHILDREN_MAX; in nilfs_btree_gather_data()
1720 ncmax = nilfs_btree_nchildren_per_block(btree); in nilfs_btree_gather_data()
1731 dptrs = nilfs_btree_node_dptrs(node, ncmax); in nilfs_btree_gather_data()
1930 int ncmax, ret; in nilfs_btree_prepare_update_v() local
1932 parent = nilfs_btree_get_node(btree, path, level + 1, &ncmax); in nilfs_btree_prepare_update_v()
1935 ncmax); in nilfs_btree_prepare_update_v()
1965 int ncmax; in nilfs_btree_commit_update_v() local
1979 parent = nilfs_btree_get_node(btree, path, level + 1, &ncmax); in nilfs_btree_commit_update_v()
1981 path[level].bp_newreq.bpr_ptr, ncmax); in nilfs_btree_commit_update_v()
2054 int ncmax; in nilfs_btree_propagate_v() local
2064 parent = nilfs_btree_get_node(btree, path, level + 1, &ncmax); in nilfs_btree_propagate_v()
2067 ncmax); in nilfs_btree_propagate_v()
2213 int ncmax, ret; in nilfs_btree_assign_p() local
2215 parent = nilfs_btree_get_node(btree, path, level + 1, &ncmax); in nilfs_btree_assign_p()
2217 ncmax); in nilfs_btree_assign_p()
2234 ncmax); in nilfs_btree_assign_p()
2257 int ncmax, ret; in nilfs_btree_assign_v() local
2259 parent = nilfs_btree_get_node(btree, path, level + 1, &ncmax); in nilfs_btree_assign_v()
2261 ncmax); in nilfs_btree_assign_v()