Thread (71 messages) 71 messages, 7 authors, 2025-09-19

Re: [PATCH v2 18/33] mnt: support ns lookup

From: Jan Kara <jack@suse.cz>
Date: 2025-09-15 11:48:53
Also in: linux-block, linux-fsdevel, linux-kselftest, linux-nfs, lkml, netdev

On Fri 12-09-25 13:52:41, Christian Brauner wrote:
Move the mount namespace to the generic ns lookup infrastructure.
This allows us to drop a bunch of members from struct mnt_namespace.
                                                                      t
Signed-off-by: Christian Brauner <brauner@kernel.org>
Just one nit below. Feel free to add:

Reviewed-by: Jan Kara <jack@suse.cz>
quoted hunk ↗ jump to hunk
@@ -4185,11 +4107,11 @@ static struct mnt_namespace *alloc_mnt_ns(struct user_namespace *user_ns, bool a
 		return ERR_PTR(ret);
 	}
 	if (!anon)
-		new_ns->seq = atomic64_inc_return(&mnt_ns_seq);
+		ns_tree_gen_id(&new_ns->ns);
+	RB_CLEAR_NODE(&new_ns->ns.ns_tree_node);
+	INIT_LIST_HEAD(&new_ns->ns.ns_list_node);
Why do you initialize ns_tree_node and ns_list_node here when
ns_init_common() already initialized them?

								Honza
-- 
Jan Kara [off-list ref]
SUSE Labs, CR
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help