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

Function dnode_spill_freed

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

Source from the content-addressed store, hash-verified

2267}
2268
2269static boolean_t
2270dnode_spill_freed(dnode_t *dn)
2271{
2272 int i;
2273
2274 mutex_enter(&dn->dn_mtx);
2275 for (i = 0; i < TXG_SIZE; i++) {
2276 if (dn->dn_rm_spillblk[i] == DN_KILL_SPILLBLK)
2277 break;
2278 }
2279 mutex_exit(&dn->dn_mtx);
2280 return (i < TXG_SIZE);
2281}
2282
2283/* return TRUE if this blkid was freed in a recent txg, or FALSE if it wasn't */
2284uint64_t

Callers 1

dnode_block_freedFunction · 0.85

Calls 2

mutex_enterFunction · 0.85
mutex_exitFunction · 0.85

Tested by

no test coverage detected