summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-16 14:39:34 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 14:12:53 -0400
commitb54b9be7824d84158cd90305820e2c3914f74ad9 (patch)
tree049c2913948eca238f64354a1921a62d5cbf2f5d /fs
parente3197d83d6f5b9bd0e57a05592437ffa459ee106 (diff)
downloadlinux-rpi3-b54b9be7824d84158cd90305820e2c3914f74ad9.tar.gz
linux-rpi3-b54b9be7824d84158cd90305820e2c3914f74ad9.tar.bz2
linux-rpi3-b54b9be7824d84158cd90305820e2c3914f74ad9.zip
get rid of the second argument of shrink_submounts()
... it's always &unmounted. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/namespace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 0d91711a3160..c04afaf0e3dc 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1184,7 +1184,7 @@ void umount_tree(struct mount *mnt, int propagate, struct list_head *kill)
list_splice(&tmp_list, kill);
}
-static void shrink_submounts(struct mount *mnt, struct list_head *umounts);
+static void shrink_submounts(struct mount *mnt);
static int do_umount(struct mount *mnt, int flags)
{
@@ -1262,7 +1262,7 @@ static int do_umount(struct mount *mnt, int flags)
event++;
if (!(flags & MNT_DETACH))
- shrink_submounts(mnt, &unmounted);
+ shrink_submounts(mnt);
retval = -EBUSY;
if (flags & MNT_DETACH || !propagate_mount_busy(mnt, 2)) {
@@ -2145,7 +2145,7 @@ resume:
*
* vfsmount_lock must be held for write
*/
-static void shrink_submounts(struct mount *mnt, struct list_head *umounts)
+static void shrink_submounts(struct mount *mnt)
{
LIST_HEAD(graveyard);
struct mount *m;
@@ -2156,7 +2156,7 @@ static void shrink_submounts(struct mount *mnt, struct list_head *umounts)
m = list_first_entry(&graveyard, struct mount,
mnt_expire);
touch_mnt_namespace(m->mnt_ns);
- umount_tree(m, 1, umounts);
+ umount_tree(m, 1, &unmounted);
}
}
}