linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] ns: rework common initialization
@ 2025-09-17 10:27 Christian Brauner
  2025-09-17 10:28 ` [PATCH 1/9] uts: split namespace into separate header Christian Brauner
                   ` (8 more replies)
  0 siblings, 9 replies; 27+ messages in thread
From: Christian Brauner @ 2025-09-17 10:27 UTC (permalink / raw)
  To: linux-fsdevel
  Cc: Amir Goldstein, Josef Bacik, Jeff Layton, Mike Yuan,
	Zbigniew Jędrzejewski-Szmek, Lennart Poettering,
	Daan De Meyer, Aleksa Sarai, Alexander Viro, Jan Kara, Tejun Heo,
	Johannes Weiner, Michal Koutný, Jakub Kicinski,
	Anna-Maria Behnsen, Frederic Weisbecker, Thomas Gleixner, cgroups,
	linux-kernel, netdev, Christian Brauner

The current scheme still involves a lot of open-coding and copy-pasing
and bleeds a lot of unnecessary details into actual namespace
implementers. Encapsulate it in the common helpers and simplify it all.

Signed-off-by: Christian Brauner <brauner@kernel.org>
---
Christian Brauner (9):
      uts: split namespace into separate header
      mnt: expose pointer to init_mnt_ns
      nscommon: move to separate file
      cgroup: split namespace into separate header
      nsfs: add inode number for anon namespace
      mnt: simplify ns_common_init() handling
      net: centralize ns_common initialization
      nscommon: simplify initialization
      ns: add ns_common_free()

 fs/namespace.c                   | 16 ++++++----
 include/linux/cgroup.h           | 51 +------------------------------
 include/linux/cgroup_namespace.h | 56 ++++++++++++++++++++++++++++++++++
 include/linux/mnt_namespace.h    |  2 ++
 include/linux/ns_common.h        | 43 ++++++++++++++++++++++++++
 include/linux/proc_ns.h          | 21 -------------
 include/linux/uts_namespace.h    | 65 ++++++++++++++++++++++++++++++++++++++++
 include/linux/utsname.h          | 58 +----------------------------------
 include/uapi/linux/nsfs.h        |  3 ++
 ipc/namespace.c                  |  6 ++--
 kernel/Makefile                  |  2 +-
 kernel/cgroup/namespace.c        |  4 +--
 kernel/nscommon.c                | 25 ++++++++++++++++
 kernel/pid_namespace.c           |  6 ++--
 kernel/time/namespace.c          |  4 +--
 kernel/user_namespace.c          |  6 ++--
 kernel/utsname.c                 |  4 +--
 net/core/net_namespace.c         | 23 ++------------
 18 files changed, 225 insertions(+), 170 deletions(-)
---
base-commit: bf56a464f4ad7143c6e4b581b411f682f345a344
change-id: 20250917-work-namespace-ns_common-5859468e4c55


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

end of thread, other threads:[~2025-09-23 10:44 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-17 10:27 [PATCH 0/9] ns: rework common initialization Christian Brauner
2025-09-17 10:28 ` [PATCH 1/9] uts: split namespace into separate header Christian Brauner
2025-09-17 16:28   ` Jan Kara
2025-09-17 10:28 ` [PATCH 2/9] mnt: expose pointer to init_mnt_ns Christian Brauner
2025-09-17 16:28   ` Jan Kara
2025-09-19 10:05     ` Christian Brauner
2025-09-22 10:19       ` Jan Kara
2025-09-23 10:44         ` Christian Brauner
2025-09-17 10:28 ` [PATCH 3/9] nscommon: move to separate file Christian Brauner
2025-09-17 16:30   ` Jan Kara
2025-09-17 10:28 ` [PATCH 4/9] cgroup: split namespace into separate header Christian Brauner
2025-09-17 16:30   ` Tejun Heo
2025-09-17 16:30   ` Jan Kara
2025-09-17 10:28 ` [PATCH 5/9] nsfs: add inode number for anon namespace Christian Brauner
2025-09-17 16:31   ` Jan Kara
2025-09-17 10:28 ` [PATCH 6/9] mnt: simplify ns_common_init() handling Christian Brauner
2025-09-17 16:45   ` Jan Kara
2025-09-18  8:15     ` Christian Brauner
2025-09-18  9:12       ` Jan Kara
2025-09-17 10:28 ` [PATCH 7/9] net: centralize ns_common initialization Christian Brauner
2025-09-18  9:42   ` Jan Kara
2025-09-19  8:08     ` Christian Brauner
2025-09-22 10:19       ` Jan Kara
2025-09-17 10:28 ` [PATCH 8/9] nscommon: simplify initialization Christian Brauner
2025-09-18  9:45   ` Jan Kara
2025-09-17 10:28 ` [PATCH 9/9] ns: add ns_common_free() Christian Brauner
2025-09-18  9:11   ` 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).