Lines Matching refs:right
102 /* overlaps with the right side of the clearing range */
125 struct xbitmap64_node *right;
143 /* Do we have a right-adjacent extent? */
144 right = xbitmap64_tree_iter_first(&bitmap->xb_root, last + 1, last + 1);
145 ASSERT(!right || right->bn_start == last + 1);
147 if (left && right) {
148 /* combine left and right adjacent extent */
150 xbitmap64_tree_remove(right, &bitmap->xb_root);
151 left->bn_last = right->bn_last;
153 kfree(right);
159 } else if (right) {
160 /* combine with right extent */
161 xbitmap64_tree_remove(right, &bitmap->xb_root);
162 right->bn_start = start;
163 xbitmap64_tree_insert(right, &bitmap->xb_root);
376 /* overlaps with the right side of the clearing range */
399 struct xbitmap32_node *right;
417 /* Do we have a right-adjacent extent? */
418 right = xbitmap32_tree_iter_first(&bitmap->xb_root, last + 1, last + 1);
419 ASSERT(!right || right->bn_start == last + 1);
421 if (left && right) {
422 /* combine left and right adjacent extent */
424 xbitmap32_tree_remove(right, &bitmap->xb_root);
425 left->bn_last = right->bn_last;
427 kfree(right);
433 } else if (right) {
434 /* combine with right extent */
435 xbitmap32_tree_remove(right, &bitmap->xb_root);
436 right->bn_start = start;
437 xbitmap32_tree_insert(right, &bitmap->xb_root);