linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ns: tweak ns common handling
@ 2025-09-24 11:33 Christian Brauner
  2025-09-24 11:33 ` [PATCH 1/3] nstree: make struct ns_tree private Christian Brauner
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Christian Brauner @ 2025-09-24 11:33 UTC (permalink / raw)
  To: linux-fsdevel
  Cc: Amir Goldstein, Josef Bacik, Jeff Layton, Mike Yuan,
	Zbigniew Jędrzejewski-Szmek, Lennart Poettering,
	Aleksa Sarai, Alexander Viro, Jan Kara, Tejun Heo,
	Johannes Weiner, Michal Koutný, Jakub Kicinski,
	Anna-Maria Behnsen, Frederic Weisbecker, Thomas Gleixner, cgroups,
	netdev, Christian Brauner

This contains three minor tweaks for namespace handling:

* Make struct ns_tree private. There's no need for anything to access
  that directly.

* Drop a debug assert that would trigger in conditions that are benign.

* Move the type of the namespace out of struct proc_ns_operations and
  into struct ns_common. This eliminates a pointer dereference and also
  allows assertions to work when the namespace type is disabled and the
  operations field set to NULL.

"Trust me, just one more fixes series, bro. Just one more, bro."

Signed-off-by: Christian Brauner <brauner@kernel.org>
---
Christian Brauner (3):
      nstree: make struct ns_tree private
      ns: move ns type into struct ns_common
      ns: drop assert

 fs/namespace.c            |  6 +++---
 fs/nsfs.c                 | 18 +++++++++---------
 include/linux/ns_common.h | 30 +++++++++++++++++++++++++-----
 include/linux/nstree.h    | 13 -------------
 include/linux/proc_ns.h   |  1 -
 init/version-timestamp.c  |  1 +
 ipc/msgutil.c             |  1 +
 ipc/namespace.c           |  1 -
 kernel/cgroup/cgroup.c    |  1 +
 kernel/cgroup/namespace.c |  1 -
 kernel/nscommon.c         |  7 +++----
 kernel/nsproxy.c          |  4 ++--
 kernel/nstree.c           | 21 +++++++++++++++++----
 kernel/pid.c              |  1 +
 kernel/pid_namespace.c    |  2 --
 kernel/time/namespace.c   |  3 +--
 kernel/user.c             |  1 +
 kernel/user_namespace.c   |  1 -
 kernel/utsname.c          |  1 -
 net/core/net_namespace.c  |  1 -
 20 files changed, 65 insertions(+), 50 deletions(-)
---
base-commit: d969328c513c6679b4be11a995ffd4d184c25b34
change-id: 20250924-work-namespaces-fixes-99d0c1ce2d86


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

end of thread, other threads:[~2025-09-24 22:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-24 11:33 [PATCH 0/3] ns: tweak ns common handling Christian Brauner
2025-09-24 11:33 ` [PATCH 1/3] nstree: make struct ns_tree private Christian Brauner
2025-09-24 11:46   ` Jan Kara
2025-09-24 22:39   ` kernel test robot
2025-09-24 11:33 ` [PATCH 2/3] ns: move ns type into struct ns_common Christian Brauner
2025-09-24 11:58   ` Jan Kara
2025-09-24 11:34 ` [PATCH 3/3] ns: drop assert Christian Brauner
2025-09-24 12:00   ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).