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

Function report_dnode

freebsd/contrib/openzfs/module/zfs/dmu_diff.c:88–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88static int
89report_dnode(dmu_diffarg_t *da, uint64_t object, dnode_phys_t *dnp)
90{
91 ASSERT(dnp != NULL);
92 if (dnp->dn_type == DMU_OT_NONE)
93 return (report_free_dnode_range(da, object, object));
94
95 if (da->da_ddr.ddr_type != DDR_INUSE ||
96 object != da->da_ddr.ddr_last + 1) {
97 if (write_record(da) != 0)
98 return (da->da_err);
99 da->da_ddr.ddr_type = DDR_INUSE;
100 da->da_ddr.ddr_first = da->da_ddr.ddr_last = object;
101 return (0);
102 }
103 da->da_ddr.ddr_last = object;
104 return (0);
105}
106
107#define DBP_SPAN(dnp, level) \
108 (((uint64_t)dnp->dn_datablkszsec) << (SPA_MINBLOCKSHIFT + \

Callers 1

diff_cbFunction · 0.85

Calls 2

report_free_dnode_rangeFunction · 0.85
write_recordFunction · 0.85

Tested by

no test coverage detected