summaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorAl Viro2011-11-25 01:31:36 +0100
committerAl Viro2012-01-04 04:52:37 +0100
commitaa0a4cf0ab4b03db21133a0ba62f558ed1bfcd1d (patch)
tree141a3bbb532709dcb494e2bce956c778757ed870 /fs/namespace.c
parentunexport put_mnt_ns(), make create_mnt_ns() static outright (diff)
downloadkernel-qcow2-linux-aa0a4cf0ab4b03db21133a0ba62f558ed1bfcd1d.tar.gz
kernel-qcow2-linux-aa0a4cf0ab4b03db21133a0ba62f558ed1bfcd1d.tar.xz
kernel-qcow2-linux-aa0a4cf0ab4b03db21133a0ba62f558ed1bfcd1d.zip
vfs: dentry_reset_mounted() doesn't use vfsmount argument
lose it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 0953a3a6d45e..ed21ac4f7c69 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -523,7 +523,7 @@ static void __touch_mnt_namespace(struct mnt_namespace *ns)
* Clear dentry's mounted state if it has no remaining mounts.
* vfsmount_lock must be held for write.
*/
-static void dentry_reset_mounted(struct vfsmount *mnt, struct dentry *dentry)
+static void dentry_reset_mounted(struct dentry *dentry)
{
unsigned u;
@@ -551,7 +551,7 @@ static void detach_mnt(struct vfsmount *mnt, struct path *old_path)
mnt->mnt_mountpoint = mnt->mnt_root;
list_del_init(&mnt->mnt_child);
list_del_init(&mnt->mnt_hash);
- dentry_reset_mounted(old_path->mnt, old_path->dentry);
+ dentry_reset_mounted(old_path->dentry);
}
/*
@@ -1224,7 +1224,7 @@ void umount_tree(struct vfsmount *mnt, int propagate, struct list_head *kill)
list_del_init(&p->mnt_child);
if (mnt_has_parent(p)) {
p->mnt_parent->mnt_ghosts++;
- dentry_reset_mounted(p->mnt_parent, p->mnt_mountpoint);
+ dentry_reset_mounted(p->mnt_mountpoint);
}
change_mnt_propagation(p, MS_PRIVATE);
}