diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2025-08-26 16:35:55 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-09-16 00:33:37 -0400 |
commit | 38f4885088fc5ad41b8b0a2a2cfc73d01e709e5c (patch) | |
tree | 2881167dea1b5ac15643b4dbad7f41812377652c /fs/debugfs/inode.c | |
parent | b320789d6883cc00ac78ce83bccbfe7ed58afcf0 (diff) |
mnt_ns_tree_remove(): DTRT if mnt_ns had never been added to mnt_ns_list
Actual removal is done under the lock, but for checking if need to bother
the lockless RB_EMPTY_NODE() is safe - either that namespace had never
been added to mnt_ns_tree, in which case the the node will stay empty, or
whoever had allocated it has called mnt_ns_tree_add() and it has already
run to completion. After that point RB_EMPTY_NODE() will become false and
will remain false, no matter what we do with other nodes in the tree.
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/debugfs/inode.c')
0 files changed, 0 insertions, 0 deletions