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

Function zio_pop_transforms

freebsd/contrib/openzfs/module/zfs/zio.c:402–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402void
403zio_pop_transforms(zio_t *zio)
404{
405 zio_transform_t *zt;
406
407 while ((zt = zio->io_transform_stack) != NULL) {
408 if (zt->zt_transform != NULL)
409 zt->zt_transform(zio,
410 zt->zt_orig_abd, zt->zt_orig_size);
411
412 if (zt->zt_bufsize != 0)
413 abd_free(zio->io_abd);
414
415 zio->io_abd = zt->zt_orig_abd;
416 zio->io_size = zt->zt_orig_size;
417 zio->io_transform_stack = zt->zt_next;
418
419 kmem_free(zt, sizeof (zio_transform_t));
420 }
421}
422
423/*
424 * ==========================================================================

Callers 2

zio_ddt_writeFunction · 0.85
zio_doneFunction · 0.85

Calls 2

abd_freeFunction · 0.85
kmem_freeFunction · 0.50

Tested by

no test coverage detected