File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
tools/testing/selftests/mm Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ if [[ "$1" == "-cgroup-v2" ]]; then
25
25
fi
26
26
27
27
if [[ $cgroup2 ]]; then
28
- cgroup_path=$( mount -t cgroup2 | head -1 | awk -e ' {print $3}' )
28
+ cgroup_path=$( mount -t cgroup2 | head -1 | awk ' {print $3}' )
29
29
if [[ -z " $cgroup_path " ]]; then
30
30
cgroup_path=/dev/cgroup/memory
31
31
mount -t cgroup2 none $cgroup_path
32
32
do_umount=1
33
33
fi
34
34
echo " +hugetlb" > $cgroup_path /cgroup.subtree_control
35
35
else
36
- cgroup_path=$( mount -t cgroup | grep " ,hugetlb" | awk -e ' {print $3}' )
36
+ cgroup_path=$( mount -t cgroup | grep " ,hugetlb" | awk ' {print $3}' )
37
37
if [[ -z " $cgroup_path " ]]; then
38
38
cgroup_path=/dev/cgroup/memory
39
39
mount -t cgroup memory,hugetlb $cgroup_path
Original file line number Diff line number Diff line change 20
20
21
21
22
22
if [[ $cgroup2 ]]; then
23
- CGROUP_ROOT=$( mount -t cgroup2 | head -1 | awk -e ' {print $3}' )
23
+ CGROUP_ROOT=$( mount -t cgroup2 | head -1 | awk ' {print $3}' )
24
24
if [[ -z " $CGROUP_ROOT " ]]; then
25
25
CGROUP_ROOT=/dev/cgroup/memory
26
26
mount -t cgroup2 none $CGROUP_ROOT
27
27
do_umount=1
28
28
fi
29
29
echo " +hugetlb +memory" > $CGROUP_ROOT /cgroup.subtree_control
30
30
else
31
- CGROUP_ROOT=$( mount -t cgroup | grep " ,hugetlb" | awk -e ' {print $3}' )
31
+ CGROUP_ROOT=$( mount -t cgroup | grep " ,hugetlb" | awk ' {print $3}' )
32
32
if [[ -z " $CGROUP_ROOT " ]]; then
33
33
CGROUP_ROOT=/dev/cgroup/memory
34
34
mount -t cgroup memory,hugetlb $CGROUP_ROOT
You can’t perform that action at this time.
0 commit comments