1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00:00

Fix compiling in the NO_SWAPPING case.

Submitted by:	bde (partially)
This commit is contained in:
John Baldwin 2003-04-23 18:21:41 +00:00
parent c6004a6202
commit 11edc1e0d7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113918

View File

@ -513,14 +513,16 @@ void
faultin(p)
struct proc *p;
{
#ifdef NO_SWAPPING
PROC_LOCK_ASSERT(p, MA_OWNED);
if ((p->p_sflag & PS_INMEM) == 0)
panic("faultin: proc swapped out with NO_SWAPPING!");
#else /* !NO_SWAPPING */
struct thread *td;
GIANT_REQUIRED;
PROC_LOCK_ASSERT(p, MA_OWNED);
#ifdef NO_SWAPPING
if ((p->p_sflag & PS_INMEM) == 0)
panic("faultin: proc swapped out with NO_SWAPPING!");
#else
/*
* If another process is swapping in this process,
* just wait until it finishes.
@ -558,7 +560,7 @@ faultin(p)
/* Allow other threads to swap p out now. */
--p->p_lock;
}
#endif
#endif /* NO_SWAPPING */
}
/*