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

Function zio_push_transform

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

* ========================================================================== * Push and pop I/O transform buffers * ========================================================================== */

Source from the content-addressed store, hash-verified

382 * ==========================================================================
383 */
384void
385zio_push_transform(zio_t *zio, abd_t *data, uint64_t size, uint64_t bufsize,
386 zio_transform_func_t *transform)
387{
388 zio_transform_t *zt = kmem_alloc(sizeof (zio_transform_t), KM_SLEEP);
389
390 zt->zt_orig_abd = zio->io_abd;
391 zt->zt_orig_size = zio->io_size;
392 zt->zt_bufsize = bufsize;
393 zt->zt_transform = transform;
394
395 zt->zt_next = zio->io_transform_stack;
396 zio->io_transform_stack = zt;
397
398 zio->io_abd = data;
399 zio->io_size = size;
400}
401
402void
403zio_pop_transforms(zio_t *zio)

Callers 6

zio_write_physFunction · 0.85
zio_read_bp_initFunction · 0.85
zio_write_compressFunction · 0.85
zio_ddt_writeFunction · 0.85
zio_vdev_io_startFunction · 0.85
zio_encryptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected