aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2009-04-18 03:28:19 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2009-06-11 21:36:01 -0400
commit589ff870ed60a9ebdd5ec99ec3f5afe1282fe151 (patch)
treea628f8db3bd587df6e2a918216aa64946b506e6f /fs/namespace.c
parentbab77ebf51e3902f608ecf08c9d34a0a52ac35a9 (diff)
Switch collect_mounts() to struct path
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 88a904d5aa23..c85962206aad 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1253,11 +1253,11 @@ Enomem:
1253 return NULL; 1253 return NULL;
1254} 1254}
1255 1255
1256struct vfsmount *collect_mounts(struct vfsmount *mnt, struct dentry *dentry) 1256struct vfsmount *collect_mounts(struct path *path)
1257{ 1257{
1258 struct vfsmount *tree; 1258 struct vfsmount *tree;
1259 down_write(&namespace_sem); 1259 down_write(&namespace_sem);
1260 tree = copy_tree(mnt, dentry, CL_COPY_ALL | CL_PRIVATE); 1260 tree = copy_tree(path->mnt, path->dentry, CL_COPY_ALL | CL_PRIVATE);
1261 up_write(&namespace_sem); 1261 up_write(&namespace_sem);
1262 return tree; 1262 return tree;
1263} 1263}