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

Function dnode_buf_byteswap

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

Source from the content-addressed store, hash-verified

365}
366
367void
368dnode_buf_byteswap(void *vbuf, size_t size)
369{
370 int i = 0;
371
372 ASSERT3U(sizeof (dnode_phys_t), ==, (1<<DNODE_SHIFT));
373 ASSERT((size & (sizeof (dnode_phys_t)-1)) == 0);
374
375 while (i < size) {
376 dnode_phys_t *dnp = (void *)(((char *)vbuf) + i);
377 dnode_byteswap(dnp);
378
379 i += DNODE_MIN_SIZE;
380 if (dnp->dn_type != DMU_OT_NONE)
381 i += dnp->dn_extra_slots * DNODE_MIN_SIZE;
382 }
383}
384
385void
386dnode_setbonuslen(dnode_t *dn, int newsize, dmu_tx_t *tx)

Callers

nothing calls this directly

Calls 1

dnode_byteswapFunction · 0.85

Tested by

no test coverage detected