diff options
author | peter <peter@FreeBSD.org> | 1999-04-06 03:08:43 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-04-06 03:08:43 +0000 |
commit | 8d6ca2a948dd3e37d03e1634fba55c82ad970c5b (patch) | |
tree | a596f31558322cc1afe00dc4be4b886eec4188f9 /sys/ufs/mfs/mfs_vfsops.c | |
parent | 907d1de4fb0d46595d2b74bceb4edcc76f2e65c7 (diff) | |
download | FreeBSD-src-8d6ca2a948dd3e37d03e1634fba55c82ad970c5b.zip FreeBSD-src-8d6ca2a948dd3e37d03e1634fba55c82ad970c5b.tar.gz |
Hold the mfs process's upages in-core with PHOLD rather than P_NOSWAP.
Diffstat (limited to 'sys/ufs/mfs/mfs_vfsops.c')
-rw-r--r-- | sys/ufs/mfs/mfs_vfsops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ufs/mfs/mfs_vfsops.c b/sys/ufs/mfs/mfs_vfsops.c index 9e19444..6f1697b 100644 --- a/sys/ufs/mfs/mfs_vfsops.c +++ b/sys/ufs/mfs/mfs_vfsops.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)mfs_vfsops.c 8.11 (Berkeley) 6/19/95 - * $Id: mfs_vfsops.c,v 1.57 1999/03/12 00:44:03 julian Exp $ + * $Id: mfs_vfsops.c,v 1.58 1999/04/05 06:39:10 peter Exp $ */ @@ -394,13 +394,13 @@ mfs_start(mp, flags, p) register int gotsig = 0; /* - * We must set P_NOSWAP to prevent the system from trying to swap + * We must prevent the system from trying to swap * out or kill ( when swap space is low, see vm/pageout.c ) the * process. A deadlock can occur if the process is swapped out, * and the system can loop trying to kill the unkillable ( while * references exist ) MFS process when swap space is low. */ - curproc->p_flag |= P_NOSWAP; + PHOLD(curproc); while (mfsp->mfs_active) { int s; |