Re: [PATCH 22/26] cgroup/misc: Add private per cgroup data to struct misc_cg

From: Tejun Heo
Date: Mon Nov 14 2022 - 17:34:13 EST


On Fri, Nov 11, 2022 at 10:35:27AM -0800, Kristen Carlson Accardi wrote:
> +void *misc_cg_get_priv(enum misc_res_type type, struct misc_cg *cg)
> +{
> + if (!(valid_type(type) && cg))
> + return NULL;
> +
> + return cg->res[type].priv;
> +}
> +EXPORT_SYMBOL_GPL(misc_cg_get_priv);

Yeah, just deref it. I'm not sure what all these accessors are contributing.

Thanks.

--
tejun