| 94 | } |
| 95 | |
| 96 | bool |
| 97 | rangeset_check_empty(struct rangeset *rs, uint64_t start, uint64_t end) |
| 98 | { |
| 99 | struct rs_el *r; |
| 100 | uint64_t *r1; |
| 101 | |
| 102 | rangeset_check(rs); |
| 103 | r1 = pctrie_lookup_le(&rs->rs_trie, end); |
| 104 | if (r1 != NULL) { |
| 105 | r = __containerof(r1, struct rs_el, re_start); |
| 106 | if (r->re_end > start) |
| 107 | return (false); |
| 108 | } |
| 109 | return (true); |
| 110 | } |
| 111 | |
| 112 | int |
| 113 | rangeset_insert(struct rangeset *rs, uint64_t start, uint64_t end, |
no test coverage detected