Supply the correct process argument to dounmount when possible.

This commit is contained in:
Tor Egge 1998-05-17 19:38:55 +00:00
parent 5931a9c24e
commit cb87a87c16
2 changed files with 12 additions and 4 deletions

View File

@ -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.
*/

View File

@ -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.
*/