diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/namespace.c | 8 | ||||
-rw-r--r-- | fs/pnode.c | 12 | ||||
-rw-r--r-- | fs/pnode.h | 8 |
3 files changed, 14 insertions, 14 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index 98b49351fbde..c7fa75f0fd92 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
@@ -724,7 +724,7 @@ static struct vfsmount *clone_mnt(struct vfsmount *old, struct dentry *root, | |||
724 | mnt->mnt.mnt_master = old->mnt_master; | 724 | mnt->mnt.mnt_master = old->mnt_master; |
725 | } | 725 | } |
726 | if (flag & CL_MAKE_SHARED) | 726 | if (flag & CL_MAKE_SHARED) |
727 | set_mnt_shared(&mnt->mnt); | 727 | set_mnt_shared(mnt); |
728 | 728 | ||
729 | /* stick the duplicate mount on the same expiry list | 729 | /* stick the duplicate mount on the same expiry list |
730 | * as the original if that was on one */ | 730 | * as the original if that was on one */ |
@@ -1239,7 +1239,7 @@ void umount_tree(struct vfsmount *mnt, int propagate, struct list_head *kill) | |||
1239 | p->mnt.mnt_parent->mnt_ghosts++; | 1239 | p->mnt.mnt_parent->mnt_ghosts++; |
1240 | dentry_reset_mounted(p->mnt.mnt_mountpoint); | 1240 | dentry_reset_mounted(p->mnt.mnt_mountpoint); |
1241 | } | 1241 | } |
1242 | change_mnt_propagation(&p->mnt, MS_PRIVATE); | 1242 | change_mnt_propagation(p, MS_PRIVATE); |
1243 | } | 1243 | } |
1244 | list_splice(&tmp_list, kill); | 1244 | list_splice(&tmp_list, kill); |
1245 | } | 1245 | } |
@@ -1608,7 +1608,7 @@ static int attach_recursive_mnt(struct mount *source_mnt, | |||
1608 | 1608 | ||
1609 | if (IS_MNT_SHARED(dest_mnt)) { | 1609 | if (IS_MNT_SHARED(dest_mnt)) { |
1610 | for (p = source_mnt; p; p = next_mnt(p, &source_mnt->mnt)) | 1610 | for (p = source_mnt; p; p = next_mnt(p, &source_mnt->mnt)) |
1611 | set_mnt_shared(&p->mnt); | 1611 | set_mnt_shared(p); |
1612 | } | 1612 | } |
1613 | if (parent_path) { | 1613 | if (parent_path) { |
1614 | detach_mnt(source_mnt, parent_path); | 1614 | detach_mnt(source_mnt, parent_path); |
@@ -1723,7 +1723,7 @@ static int do_change_type(struct path *path, int flag) | |||
1723 | 1723 | ||
1724 | br_write_lock(vfsmount_lock); | 1724 | br_write_lock(vfsmount_lock); |
1725 | for (m = mnt; m; m = (recurse ? next_mnt(m, &mnt->mnt) : NULL)) | 1725 | for (m = mnt; m; m = (recurse ? next_mnt(m, &mnt->mnt) : NULL)) |
1726 | change_mnt_propagation(&m->mnt, type); | 1726 | change_mnt_propagation(m, type); |
1727 | br_write_unlock(vfsmount_lock); | 1727 | br_write_unlock(vfsmount_lock); |
1728 | 1728 | ||
1729 | out_unlock: | 1729 | out_unlock: |
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 | */ |
117 | void change_mnt_propagation(struct vfsmount *mnt, int type) | 117 | void 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 | ||
diff --git a/fs/pnode.h b/fs/pnode.h index 23dfe22139da..a2ad95435c48 100644 --- a/fs/pnode.h +++ b/fs/pnode.h | |||
@@ -23,13 +23,13 @@ | |||
23 | #define CL_MAKE_SHARED 0x08 | 23 | #define CL_MAKE_SHARED 0x08 |
24 | #define CL_PRIVATE 0x10 | 24 | #define CL_PRIVATE 0x10 |
25 | 25 | ||
26 | static inline void set_mnt_shared(struct vfsmount *mnt) | 26 | static inline void set_mnt_shared(struct mount *mnt) |
27 | { | 27 | { |
28 | mnt->mnt_flags &= ~MNT_SHARED_MASK; | 28 | mnt->mnt.mnt_flags &= ~MNT_SHARED_MASK; |
29 | mnt->mnt_flags |= MNT_SHARED; | 29 | mnt->mnt.mnt_flags |= MNT_SHARED; |
30 | } | 30 | } |
31 | 31 | ||
32 | void change_mnt_propagation(struct vfsmount *, int); | 32 | void change_mnt_propagation(struct mount *, int); |
33 | int propagate_mnt(struct vfsmount *, struct dentry *, struct vfsmount *, | 33 | int propagate_mnt(struct vfsmount *, struct dentry *, struct vfsmount *, |
34 | struct list_head *); | 34 | struct list_head *); |
35 | int propagate_umount(struct list_head *); | 35 | int propagate_umount(struct list_head *); |