We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 57a7b5b + 38f4885 commit 1b966c4Copy full SHA for 1b966c4
fs/namespace.c
@@ -195,7 +195,7 @@ static void mnt_ns_release_rcu(struct rcu_head *rcu)
195
static void mnt_ns_tree_remove(struct mnt_namespace *ns)
196
{
197
/* remove from global mount namespace list */
198
- if (!is_anon_ns(ns)) {
+ if (!RB_EMPTY_NODE(&ns->mnt_ns_tree_node)) {
199
mnt_ns_tree_write_lock();
200
rb_erase(&ns->mnt_ns_tree_node, &mnt_ns_tree);
201
list_bidir_del_rcu(&ns->mnt_ns_list);
0 commit comments