summaryrefslogtreecommitdiffstats
path: root/fs/pnode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-11-24 23:59:29 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-03 22:57:07 -0500
commita8d56d8e4fa0cb9a023834363f8d79415d277a1d (patch)
treef58aa30dfbb2d50b06ebd2ead6e70270fdac3140 /fs/pnode.c
parentc937135d98f2306157fb8d8a03a4d8b0f1e3b511 (diff)
vfs: spread struct mount - propagate_mnt()
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 f86cd4bc31ce..6519b3b4eb15 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -217,18 +217,18 @@ static struct mount *get_source(struct mount *dest,
217 * @source_mnt: source mount. 217 * @source_mnt: source mount.
218 * @tree_list : list of heads of trees to be attached. 218 * @tree_list : list of heads of trees to be attached.
219 */ 219 */
220int propagate_mnt(struct vfsmount *dest_mnt, struct dentry *dest_dentry, 220int propagate_mnt(struct mount *dest_mnt, struct dentry *dest_dentry,
221 struct vfsmount *source_mnt, struct list_head *tree_list) 221 struct mount *source_mnt, struct list_head *tree_list)
222{ 222{
223 struct mount *m, *child; 223 struct mount *m, *child;
224 int ret = 0; 224 int ret = 0;
225 struct mount *prev_dest_mnt = real_mount(dest_mnt); 225 struct mount *prev_dest_mnt = dest_mnt;
226 struct mount *prev_src_mnt = real_mount(source_mnt); 226 struct mount *prev_src_mnt = source_mnt;
227 LIST_HEAD(tmp_list); 227 LIST_HEAD(tmp_list);
228 LIST_HEAD(umount_list); 228 LIST_HEAD(umount_list);
229 229
230 for (m = propagation_next(real_mount(dest_mnt), real_mount(dest_mnt)); m; 230 for (m = propagation_next(dest_mnt, dest_mnt); m;
231 m = propagation_next(m, real_mount(dest_mnt))) { 231 m = propagation_next(m, dest_mnt)) {
232 int type; 232 int type;
233 struct mount *source; 233 struct mount *source;
234 234