summaryrefslogtreecommitdiffstats
path: root/fs/pnode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-11-24 20:43:10 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-03 22:57:01 -0500
commit0f0afb1dcf01afc44581b3c0da251ac07dfb6e4a (patch)
tree878f721ef46398d7af7f276e2f8ba9737c6dd5dd /fs/pnode.c
parentb105e270b4e9419f4b9536f6862b1b32985bc9d2 (diff)
downloadop-kernel-dev-0f0afb1dcf01afc44581b3c0da251ac07dfb6e4a.zip
op-kernel-dev-0f0afb1dcf01afc44581b3c0da251ac07dfb6e4a.tar.gz
vfs: spread struct mount - change_mnt_propagation/set_mnt_shared
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
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 a824a09..4bd3721 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -114,20 +114,20 @@ static int do_make_slave(struct vfsmount *mnt)
/*
* vfsmount lock must be held for write
*/
-void change_mnt_propagation(struct vfsmount *mnt, int type)
+void change_mnt_propagation(struct mount *mnt, int type)
{
if (type == MS_SHARED) {
set_mnt_shared(mnt);
return;
}
- do_make_slave(mnt);
+ do_make_slave(&mnt->mnt);
if (type != MS_SLAVE) {
- list_del_init(&mnt->mnt_slave);
- mnt->mnt_master = NULL;
+ list_del_init(&mnt->mnt.mnt_slave);
+ mnt->mnt.mnt_master = NULL;
if (type == MS_UNBINDABLE)
- mnt->mnt_flags |= MNT_UNBINDABLE;
+ mnt->mnt.mnt_flags |= MNT_UNBINDABLE;
else
- mnt->mnt_flags &= ~MNT_UNBINDABLE;
+ mnt->mnt.mnt_flags &= ~MNT_UNBINDABLE;
}
}
OpenPOWER on IntegriCloud