Skip to content

Commit 1505646

Browse files
authored
Merge pull request #3295 from AkihiroSuda/cherrypick-3233-1.0
[1.0] libct/cg/fs2: fix GetStats for unsupported hugetlb
2 parents 69eba42 + 8e96a96 commit 1505646

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

libcontainer/cgroups/fs2/hugetlb.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ func setHugeTlb(dirPath string, r *configs.Resources) error {
3030
}
3131

3232
func statHugeTlb(dirPath string, stats *cgroups.Stats) error {
33-
hugePageSizes, err := cgroups.GetHugePageSize()
34-
if err != nil {
35-
return errors.Wrap(err, "failed to fetch hugetlb info")
36-
}
33+
hugePageSizes, _ := cgroups.GetHugePageSize()
3734
hugetlbStats := cgroups.HugetlbStats{}
3835

3936
for _, pagesize := range hugePageSizes {

0 commit comments

Comments
 (0)