Skip to content

Minor namespace code simplication

Joel Savitz cgroups lkml 1 version Applied

Status from this message: Applied to the vfs-6.16.misc branch of the vfs/vfs.git tree.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 3 repliesApplied

Changes in v2 from the cover letter

- 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

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2kernel/nsproxy: remove unnecessary guardskernel/nsproxy.c+10 -200 replies
2/2include/cgroup: separate {get,put}_cgroup_ns no-op caseinclude/linux/cgroup.h+14 -122 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMichal Koutný
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] Minor namespace code simplication

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(-)
Signature · 1 line
2.45.2