summaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 182bc41cd887..2a1447c946e7 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -798,7 +798,7 @@ static void commit_tree(struct mount *mnt, struct mount *shadows)
798 list_splice(&head, n->list.prev); 798 list_splice(&head, n->list.prev);
799 799
800 if (shadows) 800 if (shadows)
801 hlist_add_after_rcu(&shadows->mnt_hash, &mnt->mnt_hash); 801 hlist_add_behind_rcu(&mnt->mnt_hash, &shadows->mnt_hash);
802 else 802 else
803 hlist_add_head_rcu(&mnt->mnt_hash, 803 hlist_add_head_rcu(&mnt->mnt_hash,
804 m_hash(&parent->mnt, mnt->mnt_mountpoint)); 804 m_hash(&parent->mnt, mnt->mnt_mountpoint));