Merge pull request #2500 from kolyshkin/fs-apply

libct/cgroups/fs: rework Apply()
This commit is contained in:
Mrunal Patel
2020-07-30 16:39:53 -07:00
committed by GitHub
15 changed files with 44 additions and 101 deletions
+2 -6
View File
@@ -19,12 +19,8 @@ func (s *HugetlbGroup) Name() string {
return "hugetlb"
}
func (s *HugetlbGroup) Apply(d *cgroupData) error {
_, err := d.join("hugetlb")
if err != nil && !cgroups.IsNotFound(err) {
return err
}
return nil
func (s *HugetlbGroup) Apply(path string, d *cgroupData) error {
return join(path, d.pid)
}
func (s *HugetlbGroup) Set(path string, cgroup *configs.Cgroup) error {