Unverified Commit 79fb8d8d authored by Joel Savitz's avatar Joel Savitz Committed by Christian Brauner
Browse files

include/cgroup: separate {get,put}_cgroup_ns no-op case



When CONFIG_CGROUPS is not selected, {get,put}_cgroup_ns become no-ops
and therefore it is not necessary to compile in the code for changing
the reference count.

When CONFIG_CGROUP is selected, there is no valid case where
either of {get,put}_cgroup_ns() will be called with a NULL argument.

Signed-off-by: default avatarJoel Savitz <jsavitz@redhat.com>
Link: https://lore.kernel.org/20250508184930.183040-3-jsavitz@redhat.com


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 5caa2d89
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment