Starting v6.12 memory code is split into v1 and v2 code, where v1 code
is only compiled when CONFIG_MEMCG_V1 is set. Which defaults to
disabled, teach the test case to ignore such failure.
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
found = True
break
- if not found and mount.controller == 'cpuset':
+ if not found and (mount.controller == 'cpuset' or
+ mount.controller == 'memory'):
kernel_ver = utils.get_kernel_version(config)
if int(kernel_ver[0]) >= 6 and int(kernel_ver[1]) >= 12:
- # Starting 6.12 cpuset is split into v1 and v2, where
- # v1 is compiled only when CONFIG_CPUSET_V1 is enabled
+ # Starting 6.12 cpuset and memory split into v1 and v2,
+ # where v1 is compiled only when CONFIG_CPUSET_V1 and
+ # CONFIG_MEMCG_v1 is enabled respectively.
found = True
if not found: