On Wed, 2024-04-10 at 11:25 -0700, Haitao Huang wrote: > From: Kristen Carlson Accardi <kristen@xxxxxxxxxxxxxxx> > > The SGX EPC cgroup will reclaim EPC pages when usage in a cgroup reaches > its or ancestor's limit. This requires a walk from the current cgroup up > to the root similar to misc_cg_try_charge(). Export misc_cg_parent() to > enable this walk. > > The SGX driver also needs start a global level reclamation from the > root. Export misc_cg_root() for the SGX driver to access. > > Signed-off-by: Kristen Carlson Accardi <kristen@xxxxxxxxxxxxxxx> > Co-developed-by: Haitao Huang <haitao.huang@xxxxxxxxxxxxxxx> > Signed-off-by: Haitao Huang <haitao.huang@xxxxxxxxxxxxxxx> > Reviewed-by: Jarkko Sakkinen <jarkko@xxxxxxxxxx> > Reviewed-by: Tejun Heo <tj@xxxxxxxxxx> > Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>