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

Function dnode_reclaim_slots

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

Source from the content-addressed store, hash-verified

1128}
1129
1130static void
1131dnode_reclaim_slots(dnode_children_t *children, int idx, int slots)
1132{
1133 ASSERT3S(idx + slots, <=, DNODES_PER_BLOCK);
1134
1135 for (int i = idx; i < idx + slots; i++) {
1136 dnode_handle_t *dnh = &children->dnc_children[i];
1137
1138 ASSERT(zrl_is_locked(&dnh->dnh_zrlock));
1139
1140 if (DN_SLOT_IS_PTR(dnh->dnh_dnode)) {
1141 ASSERT3S(dnh->dnh_dnode->dn_type, ==, DMU_OT_NONE);
1142 dnode_destroy(dnh->dnh_dnode);
1143 dnh->dnh_dnode = DN_SLOT_FREE;
1144 }
1145 }
1146}
1147
1148void
1149dnode_free_interior_slots(dnode_t *dn)

Callers 1

dnode_hold_implFunction · 0.85

Calls 2

zrl_is_lockedFunction · 0.85
dnode_destroyFunction · 0.85

Tested by

no test coverage detected