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

Function ztest_get_done

freebsd/contrib/openzfs/cmd/ztest/ztest.c:2259–2272  ·  view source on GitHub ↗

ARGSUSED */

Source from the content-addressed store, hash-verified

2257
2258/* ARGSUSED */
2259static void
2260ztest_get_done(zgd_t *zgd, int error)
2261{
2262 ztest_ds_t *zd = zgd->zgd_private;
2263 uint64_t object = ((rl_t *)zgd->zgd_lr)->rl_object;
2264
2265 if (zgd->zgd_db)
2266 dmu_buf_rele(zgd->zgd_db, zgd);
2267
2268 ztest_range_unlock((rl_t *)zgd->zgd_lr);
2269 ztest_object_unlock(zd, object);
2270
2271 umem_free(zgd, sizeof (*zgd));
2272}
2273
2274static int
2275ztest_get_data(void *arg, lr_write_t *lr, char *buf, struct lwb *lwb,

Callers 1

ztest_get_dataFunction · 0.85

Calls 4

dmu_buf_releFunction · 0.85
ztest_range_unlockFunction · 0.85
ztest_object_unlockFunction · 0.85
umem_freeFunction · 0.85

Tested by

no test coverage detected