MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dnode_set_slots

Function dnode_set_slots

freebsd/contrib/openzfs/module/zfs/dnode.c:1085–1094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1083}
1084
1085static void
1086dnode_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
1096static boolean_t
1097dnode_check_slots_free(dnode_children_t *children, int idx, int slots)

Callers 2

dnode_hold_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected