| 1083 | } |
| 1084 | |
| 1085 | static void |
| 1086 | dnode_set_slots(dnode_children_t *children, int idx, int slots, void *ptr) |
| 1087 | { |
| 1088 | ASSERT3S(idx + slots, <=, DNODES_PER_BLOCK); |
| 1089 | |
| 1090 | for (int i = idx; i < idx + slots; i++) { |
| 1091 | dnode_handle_t *dnh = &children->dnc_children[i]; |
| 1092 | dnh->dnh_dnode = ptr; |
| 1093 | } |
| 1094 | } |
| 1095 | |
| 1096 | static boolean_t |
| 1097 | dnode_check_slots_free(dnode_children_t *children, int idx, int slots) |
no outgoing calls
no test coverage detected