public inbox for cgroups@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Minor namespace code simplication
@ 2025-05-08 18:49 Joel Savitz
  2025-05-08 18:49 ` [PATCH v2 1/2] kernel/nsproxy: remove unnecessary guards Joel Savitz
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Joel Savitz @ 2025-05-08 18:49 UTC (permalink / raw)
  To: linux-kernel
  Cc: Joel Savitz, Tejun Heo, Johannes Weiner, Michal Koutný,
	Christian Brauner, Al Viro, cgroups

The two patches are independent of each other. The first patch removes
unnecssary NULL guards from free_nsproxy() and create_new_namespaces()
in line with other usage of the put_*_ns() call sites. The second patch
slightly reduces the size of the kernel when CONFIG_CGROUPS is not
selected.

Joel Savitz (2):
  kernel/nsproxy: remove unnecessary guards
  include/cgroup: separate {get,put}_cgroup_ns no-op case

Changes from v1:
- now removing the guards instead of adding them where missing since
  checking that all calls in the NULL case were already no-ops
- added second patch

 include/linux/cgroup.h | 26 ++++++++++++++------------
 kernel/nsproxy.c       | 30 ++++++++++--------------------
 2 files changed, 24 insertions(+), 32 deletions(-)

-- 
2.45.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-05-09 17:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-08 18:49 [PATCH v2 0/2] Minor namespace code simplication Joel Savitz
2025-05-08 18:49 ` [PATCH v2 1/2] kernel/nsproxy: remove unnecessary guards Joel Savitz
2025-05-08 18:49 ` [PATCH v2 2/2] include/cgroup: separate {get,put}_cgroup_ns no-op case Joel Savitz
2025-05-09 13:35   ` Michal Koutný
2025-05-09 17:34   ` Tejun Heo
2025-05-09 11:14 ` [PATCH v2 0/2] Minor namespace code simplication Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox