Skip to content

Commit

Permalink
cgroups: fix cgroup limit braino
Browse files Browse the repository at this point in the history
Fixes: https://discuss.linuxcontainers.org/t/memory-limits-no-longer-being-applied/7429/7
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner authored and stgraber committed Apr 15, 2020
1 parent 04a7c46 commit f2f2571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/cgroups/cgfsng.c
Expand Up @@ -2712,7 +2712,7 @@ __cgfsng_ops static bool cgfsng_setup_limits_legacy(struct cgroup_ops *ops,
if (!ops->hierarchies)
return ret_set_errno(false, EINVAL);

if (!pure_unified_layout(ops))
if (pure_unified_layout(ops))
return log_warn_errno(true, EINVAL, "Ignoring legacy cgroup limits on pure cgroup2 system");

sorted_cgroup_settings = sort_cgroup_settings(cgroup_settings);
Expand Down

0 comments on commit f2f2571

Please sign in to comment.