aboutsummaryrefslogtreecommitdiffstats
path: root/fs/pnode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/pnode.c')
-rw-r--r--fs/pnode.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/pnode.c b/fs/pnode.c
index a824a097b523..4bd3721867a7 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -114,20 +114,20 @@ static int do_make_slave(struct vfsmount *mnt)
114/* 114/*
115 * vfsmount lock must be held for write 115 * vfsmount lock must be held for write
116 */ 116 */
117void change_mnt_propagation(struct vfsmount *mnt, int type) 117void change_mnt_propagation(struct mount *mnt, int type)
118{ 118{
119 if (type == MS_SHARED) { 119 if (type == MS_SHARED) {
120 set_mnt_shared(mnt); 120 set_mnt_shared(mnt);
121 return; 121 return;
122 } 122 }
123 do_make_slave(mnt); 123 do_make_slave(&mnt->mnt);
124 if (type != MS_SLAVE) { 124 if (type != MS_SLAVE) {
125 list_del_init(&mnt->mnt_slave); 125 list_del_init(&mnt->mnt.mnt_slave);
126 mnt->mnt_master = NULL; 126 mnt->mnt.mnt_master = NULL;
127 if (type == MS_UNBINDABLE) 127 if (type == MS_UNBINDABLE)
128 mnt->mnt_flags |= MNT_UNBINDABLE; 128 mnt->mnt.mnt_flags |= MNT_UNBINDABLE;
129 else 129 else
130 mnt->mnt_flags &= ~MNT_UNBINDABLE; 130 mnt->mnt.mnt_flags &= ~MNT_UNBINDABLE;
131 } 131 }
132} 132}
133 133