Skip to content

Commit 1b966c4

Browse files
author
Al Viro
committed
Merge branch 'no-rebase-mnt_ns_tree_remove' into work.mount
2 parents 57a7b5b + 38f4885 commit 1b966c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/namespace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ static void mnt_ns_release_rcu(struct rcu_head *rcu)
195195
static void mnt_ns_tree_remove(struct mnt_namespace *ns)
196196
{
197197
/* remove from global mount namespace list */
198-
if (!is_anon_ns(ns)) {
198+
if (!RB_EMPTY_NODE(&ns->mnt_ns_tree_node)) {
199199
mnt_ns_tree_write_lock();
200200
rb_erase(&ns->mnt_ns_tree_node, &mnt_ns_tree);
201201
list_bidir_del_rcu(&ns->mnt_ns_list);

0 commit comments

Comments
 (0)