<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/kernel/nscommon.c, branch v6.18.13</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v6.18.13</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v6.18.13'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2025-09-25T07:23:54Z</updated>
<entry>
<title>ns: drop assert</title>
<updated>2025-09-25T07:23:54Z</updated>
<author>
<name>Christian Brauner</name>
<email>brauner@kernel.org</email>
</author>
<published>2025-09-24T11:34:00Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=af075603f27b0f6e05f1bdf64bad42fa7cfb033b'/>
<id>urn:sha1:af075603f27b0f6e05f1bdf64bad42fa7cfb033b</id>
<content type='text'>
Otherwise we warn when e.g., no namespaces are configured but the
initial namespace for is still around.

Reviewed-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>ns: move ns type into struct ns_common</title>
<updated>2025-09-25T07:23:54Z</updated>
<author>
<name>Christian Brauner</name>
<email>brauner@kernel.org</email>
</author>
<published>2025-09-24T11:33:59Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=4055526d35746ce8b04bfa5e14e14f28bb163186'/>
<id>urn:sha1:4055526d35746ce8b04bfa5e14e14f28bb163186</id>
<content type='text'>
It's misplaced in struct proc_ns_operations and ns-&gt;ops might be NULL if
the namespace is compiled out but we still want to know the type of the
namespace for the initial namespace struct.

Reviewed-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>ns: add ns_debug()</title>
<updated>2025-09-22T12:47:10Z</updated>
<author>
<name>Christian Brauner</name>
<email>brauner@kernel.org</email>
</author>
<published>2025-09-22T12:42:37Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=5890f504ef543190beae2a4e244bbfa7c3e0b57c'/>
<id>urn:sha1:5890f504ef543190beae2a4e244bbfa7c3e0b57c</id>
<content type='text'>
Add ns_debug() that asserts that the correct operations are used for the
namespace type.

Reviewed-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>ns: rename to __ns_ref</title>
<updated>2025-09-19T14:22:38Z</updated>
<author>
<name>Christian Brauner</name>
<email>brauner@kernel.org</email>
</author>
<published>2025-09-18T10:11:59Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=024596a4e2802e457a9f92af79f246fa9631f8de'/>
<id>urn:sha1:024596a4e2802e457a9f92af79f246fa9631f8de</id>
<content type='text'>
Make it easier to grep and rename to ns_count.

Reviewed-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>ns: add ns_common_free()</title>
<updated>2025-09-19T14:22:36Z</updated>
<author>
<name>Christian Brauner</name>
<email>brauner@kernel.org</email>
</author>
<published>2025-09-17T10:28:08Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=be5f21d3985f00827e09b798f7a07ebd6dd7f54a'/>
<id>urn:sha1:be5f21d3985f00827e09b798f7a07ebd6dd7f54a</id>
<content type='text'>
And drop ns_free_inum(). Anything common that can be wasted centrally
should be wasted in the new common helper.

Reviewed-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>nscommon: simplify initialization</title>
<updated>2025-09-19T12:26:19Z</updated>
<author>
<name>Christian Brauner</name>
<email>brauner@kernel.org</email>
</author>
<published>2025-09-17T10:28:07Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=5612ff3ec588be09f11a9424db6d1186bcdeb3fa'/>
<id>urn:sha1:5612ff3ec588be09f11a9424db6d1186bcdeb3fa</id>
<content type='text'>
There's a lot of information that namespace implementers don't need to
know about at all. Encapsulate this all in the initialization helper.

Reviewed-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>mnt: simplify ns_common_init() handling</title>
<updated>2025-09-19T12:26:18Z</updated>
<author>
<name>Christian Brauner</name>
<email>brauner@kernel.org</email>
</author>
<published>2025-09-17T10:28:05Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=86cdbae5c61c6b8c0a2adc78dbbb0314b3254a9c'/>
<id>urn:sha1:86cdbae5c61c6b8c0a2adc78dbbb0314b3254a9c</id>
<content type='text'>
Assign the reserved MNT_NS_ANON_INO sentinel to anonymous mount
namespaces and cleanup the initial mount ns allocation. This is just a
preparatory patch and the ns-&gt;inum check in ns_common_init() will be
dropped in the next patch.

Reviewed-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>nscommon: move to separate file</title>
<updated>2025-09-19T12:26:18Z</updated>
<author>
<name>Christian Brauner</name>
<email>brauner@kernel.org</email>
</author>
<published>2025-09-17T10:28:02Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=f74ca6da113d5d4b21c00bb4da3f3c137162b4fe'/>
<id>urn:sha1:f74ca6da113d5d4b21c00bb4da3f3c137162b4fe</id>
<content type='text'>
It's really awkward spilling the ns common infrastructure into multiple
headers. Move it to a separate file.

Reviewed-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
</feed>
