Deleted Added
sdiff udiff text old ( 174898 ) new ( 174921 )
full compact
1/*-
2 * Copyright (c) 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 174898 2007-12-25 17:52:02Z rwatson $");
39
40#include "opt_kdb.h"
41#include "opt_mac.h"
42#include "opt_panic.h"
43#include "opt_show_busybufs.h"
44#include "opt_sched.h"
45
46#include <sys/param.h>
47#include <sys/systm.h>

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

59#include <sys/proc.h>
60#include <sys/reboot.h>
61#include <sys/resourcevar.h>
62#include <sys/sched.h>
63#include <sys/smp.h> /* smp_active */
64#include <sys/sysctl.h>
65#include <sys/sysproto.h>
66
67#include <machine/cpu.h>
68#include <machine/pcb.h>
69#include <machine/smp.h>
70
71#include <security/mac/mac_framework.h>
72
73#include <vm/vm.h>
74#include <vm/vm_object.h>

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

235 if (dumper.dumper == NULL) {
236 printf("Cannot dump. No dump device defined.\n");
237 return;
238 }
239
240 savectx(&dumppcb);
241 dumptid = curthread->td_tid;
242 dumping++;
243 dumpsys(&dumper);
244}
245
246static int
247isbufbusy(struct buf *bp)
248{
249 if (((bp->b_flags & (B_INVAL | B_PERSISTENT)) == 0 &&
250 BUF_REFCNT(bp) > 0) ||
251 ((bp->b_flags & (B_DELWRI | B_INVAL)) == B_DELWRI))

--- 412 unchanged lines hidden ---