Merge pull request #3295 from AkihiroSuda/cherrypick-3233-1.0

[1.0] libct/cg/fs2: fix GetStats for unsupported hugetlb
This commit is contained in:
Kir Kolyshkin
2021-11-29 09:02:10 -08:00
committed by GitHub
+1 -4
View File
@@ -30,10 +30,7 @@ func setHugeTlb(dirPath string, r *configs.Resources) error {
}
func statHugeTlb(dirPath string, stats *cgroups.Stats) error {
hugePageSizes, err := cgroups.GetHugePageSize()
if err != nil {
return errors.Wrap(err, "failed to fetch hugetlb info")
}
hugePageSizes, _ := cgroups.GetHugePageSize()
hugetlbStats := cgroups.HugetlbStats{}
for _, pagesize := range hugePageSizes {