Deleted Added
full compact
vm_glue.c (92588) vm_glue.c (92666)
1/*
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 45 unchanged lines hidden (view full) ---

54 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
55 * School of Computer Science
56 * Carnegie Mellon University
57 * Pittsburgh PA 15213-3890
58 *
59 * any improvements or extensions that they make and grant Carnegie the
60 * rights to redistribute these changes.
61 *
1/*
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 45 unchanged lines hidden (view full) ---

54 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
55 * School of Computer Science
56 * Carnegie Mellon University
57 * Pittsburgh PA 15213-3890
58 *
59 * any improvements or extensions that they make and grant Carnegie the
60 * rights to redistribute these changes.
61 *
62 * $FreeBSD: head/sys/vm/vm_glue.c 92588 2002-03-18 15:08:09Z green $
62 * $FreeBSD: head/sys/vm/vm_glue.c 92666 2002-03-19 11:02:06Z peter $
63 */
64
65#include "opt_vm.h"
66
67#include <sys/param.h>
68#include <sys/systm.h>
69#include <sys/lock.h>
70#include <sys/mutex.h>

--- 509 unchanged lines hidden (view full) ---

580 vmspace_free(vm);
581 didswap++;
582 goto retry;
583 }
584 PROC_UNLOCK(p);
585 vmspace_free(vm);
586 }
587nextproc:
63 */
64
65#include "opt_vm.h"
66
67#include <sys/param.h>
68#include <sys/systm.h>
69#include <sys/lock.h>
70#include <sys/mutex.h>

--- 509 unchanged lines hidden (view full) ---

580 vmspace_free(vm);
581 didswap++;
582 goto retry;
583 }
584 PROC_UNLOCK(p);
585 vmspace_free(vm);
586 }
587nextproc:
588 continue;
588 }
589 sx_sunlock(&allproc_lock);
590 /*
591 * If we swapped something out, and another process needed memory,
592 * then wakeup the sched process.
593 */
594 if (didswap)
595 wakeup(&proc0);

--- 37 unchanged lines hidden ---
589 }
590 sx_sunlock(&allproc_lock);
591 /*
592 * If we swapped something out, and another process needed memory,
593 * then wakeup the sched process.
594 */
595 if (didswap)
596 wakeup(&proc0);

--- 37 unchanged lines hidden ---