Supply the correct process argument to dounmount when possible.
This commit is contained in:
parent
5931a9c24e
commit
cb87a87c16
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
|
||||
* $Id: vfs_subr.c,v 1.151 1998/04/18 06:26:16 peter Exp $
|
||||
* $Id: vfs_subr.c,v 1.152 1998/04/19 23:32:03 julian Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -2149,9 +2149,13 @@ void
|
||||
vfs_unmountall()
|
||||
{
|
||||
struct mount *mp, *nmp;
|
||||
struct proc *p = initproc; /* XXX XXX should this be proc0? */
|
||||
struct proc *p;
|
||||
int error;
|
||||
|
||||
if (curproc != NULL)
|
||||
p = curproc;
|
||||
else
|
||||
p = initproc; /* XXX XXX should this be proc0? */
|
||||
/*
|
||||
* Since this only runs when rebooting, it is not interlocked.
|
||||
*/
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
|
||||
* $Id: vfs_subr.c,v 1.151 1998/04/18 06:26:16 peter Exp $
|
||||
* $Id: vfs_subr.c,v 1.152 1998/04/19 23:32:03 julian Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -2149,9 +2149,13 @@ void
|
||||
vfs_unmountall()
|
||||
{
|
||||
struct mount *mp, *nmp;
|
||||
struct proc *p = initproc; /* XXX XXX should this be proc0? */
|
||||
struct proc *p;
|
||||
int error;
|
||||
|
||||
if (curproc != NULL)
|
||||
p = curproc;
|
||||
else
|
||||
p = initproc; /* XXX XXX should this be proc0? */
|
||||
/*
|
||||
* Since this only runs when rebooting, it is not interlocked.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user