mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 19:29:15 +00:00
cgroups: simplify cgfsng_setup_limits()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
431e2c547f
commit
6280d4c97d
@ -2396,13 +2396,10 @@ static bool __cg_unified_setup_limits(struct cgroup_ops *ops,
|
|||||||
}
|
}
|
||||||
|
|
||||||
__cgfsng_ops static bool cgfsng_setup_limits(struct cgroup_ops *ops,
|
__cgfsng_ops static bool cgfsng_setup_limits(struct cgroup_ops *ops,
|
||||||
struct lxc_conf *conf,
|
struct lxc_conf *conf,
|
||||||
bool do_devices)
|
bool do_devices)
|
||||||
{
|
{
|
||||||
bool bret;
|
if (!__cg_legacy_setup_limits(ops, &conf->cgroup, do_devices))
|
||||||
|
|
||||||
bret = __cg_legacy_setup_limits(ops, &conf->cgroup, do_devices);
|
|
||||||
if (!bret)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return __cg_unified_setup_limits(ops, &conf->cgroup2);
|
return __cg_unified_setup_limits(ops, &conf->cgroup2);
|
||||||
|
Loading…
Reference in New Issue
Block a user