mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
27fd3fc3ce
1. Factor out setMemory and setSwap 2. Pass cgroup.Resources (rather than cgroup) to setMemoryAndSwap(). 3. Merge the duplicated "set memory, set swap" case. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>