Skip to content

Commit

Permalink
Merge pull request #3295 from AkihiroSuda/cherrypick-3233-1.0
Browse files Browse the repository at this point in the history
[1.0] libct/cg/fs2: fix GetStats for unsupported hugetlb
  • Loading branch information
kolyshkin authored Nov 29, 2021
2 parents 69eba42 + 8e96a96 commit 1505646
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libcontainer/cgroups/fs2/hugetlb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1505646

Please sign in to comment.