mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
get rid of the second argument of shrink_submounts()
... it's always &unmounted. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e3197d83d6
commit
b54b9be782
1 changed files with 4 additions and 4 deletions
|
@ -1184,7 +1184,7 @@ void umount_tree(struct mount *mnt, int propagate, struct list_head *kill)
|
||||||
list_splice(&tmp_list, 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)
|
static int do_umount(struct mount *mnt, int flags)
|
||||||
{
|
{
|
||||||
|
@ -1262,7 +1262,7 @@ static int do_umount(struct mount *mnt, int flags)
|
||||||
event++;
|
event++;
|
||||||
|
|
||||||
if (!(flags & MNT_DETACH))
|
if (!(flags & MNT_DETACH))
|
||||||
shrink_submounts(mnt, &unmounted);
|
shrink_submounts(mnt);
|
||||||
|
|
||||||
retval = -EBUSY;
|
retval = -EBUSY;
|
||||||
if (flags & MNT_DETACH || !propagate_mount_busy(mnt, 2)) {
|
if (flags & MNT_DETACH || !propagate_mount_busy(mnt, 2)) {
|
||||||
|
@ -2145,7 +2145,7 @@ resume:
|
||||||
*
|
*
|
||||||
* vfsmount_lock must be held for write
|
* 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);
|
LIST_HEAD(graveyard);
|
||||||
struct mount *m;
|
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,
|
m = list_first_entry(&graveyard, struct mount,
|
||||||
mnt_expire);
|
mnt_expire);
|
||||||
touch_mnt_namespace(m->mnt_ns);
|
touch_mnt_namespace(m->mnt_ns);
|
||||||
umount_tree(m, 1, umounts);
|
umount_tree(m, 1, &unmounted);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue