Skip to content
Snippets Groups Projects
Commit 89e7e390 authored by Alessandro Rubini's avatar Alessandro Rubini
Browse files

zio-core: export zio_alloc/free_control()


zio_free_control is needed by external buffers.

zio_alloc_control will be needed by external triggers that don't rely
on zio_fire_trigger(). It will also be needed by in-kernel sources
of output data.

Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
Acked-by: default avatarFederico Vaga <federico.vaga@gmail.com>
parent 22a83f17
Branches
Tags
No related merge requests found
......@@ -30,11 +30,13 @@ struct zio_control *zio_alloc_control(gfp_t gfp)
ctrl->flags |= ZIO_CONTROL_LITTLE_ENDIAN;
return ctrl;
}
EXPORT_SYMBOL(zio_alloc_control); /* used by buffers */
void zio_free_control(struct zio_control *ctrl)
{
kmem_cache_free(zio_ctrl_slab, ctrl);
}
EXPORT_SYMBOL(zio_free_control); /* used by buffers */
int __init zio_slab_init(void)
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment