vfs_subr.c (236317) | vfs_subr.c (236503) |
---|---|
1/*- 2 * Copyright (c) 1989, 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. --- 25 unchanged lines hidden (view full) --- 34 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 35 */ 36 37/* 38 * External virtual filesystem routines 39 */ 40 41#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1989, 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. --- 25 unchanged lines hidden (view full) --- 34 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 35 */ 36 37/* 38 * External virtual filesystem routines 39 */ 40 41#include <sys/cdefs.h> |
42__FBSDID("$FreeBSD: head/sys/kern/vfs_subr.c 236317 2012-05-30 16:06:38Z kib $"); | 42__FBSDID("$FreeBSD: head/sys/kern/vfs_subr.c 236503 2012-06-03 08:01:12Z avg $"); |
43 44#include "opt_ddb.h" 45#include "opt_watchdog.h" 46 47#include <sys/param.h> 48#include <sys/systm.h> 49#include <sys/bio.h> 50#include <sys/buf.h> --- 17 unchanged lines hidden (view full) --- 68#include <sys/reboot.h> 69#include <sys/sched.h> 70#include <sys/sleepqueue.h> 71#include <sys/stat.h> 72#include <sys/sysctl.h> 73#include <sys/syslog.h> 74#include <sys/vmmeter.h> 75#include <sys/vnode.h> | 43 44#include "opt_ddb.h" 45#include "opt_watchdog.h" 46 47#include <sys/param.h> 48#include <sys/systm.h> 49#include <sys/bio.h> 50#include <sys/buf.h> --- 17 unchanged lines hidden (view full) --- 68#include <sys/reboot.h> 69#include <sys/sched.h> 70#include <sys/sleepqueue.h> 71#include <sys/stat.h> 72#include <sys/sysctl.h> 73#include <sys/syslog.h> 74#include <sys/vmmeter.h> 75#include <sys/vnode.h> |
76#ifdef SW_WATCHDOG | |
77#include <sys/watchdog.h> | 76#include <sys/watchdog.h> |
78#endif | |
79 80#include <machine/stdarg.h> 81 82#include <security/mac/mac_framework.h> 83 84#include <vm/vm.h> 85#include <vm/vm_object.h> 86#include <vm/vm_extern.h> --- 1777 unchanged lines hidden (view full) --- 1864 syncer_state = SYNCER_SHUTTING_DOWN; 1865 while (!LIST_EMPTY(slp)) { 1866 error = sync_vnode(slp, &bo, td); 1867 if (error == 1) { 1868 LIST_REMOVE(bo, bo_synclist); 1869 LIST_INSERT_HEAD(next, bo, bo_synclist); 1870 continue; 1871 } | 77 78#include <machine/stdarg.h> 79 80#include <security/mac/mac_framework.h> 81 82#include <vm/vm.h> 83#include <vm/vm_object.h> 84#include <vm/vm_extern.h> --- 1777 unchanged lines hidden (view full) --- 1862 syncer_state = SYNCER_SHUTTING_DOWN; 1863 while (!LIST_EMPTY(slp)) { 1864 error = sync_vnode(slp, &bo, td); 1865 if (error == 1) { 1866 LIST_REMOVE(bo, bo_synclist); 1867 LIST_INSERT_HEAD(next, bo, bo_synclist); 1868 continue; 1869 } |
1872#ifdef SW_WATCHDOG | 1870 |
1873 if (first_printf == 0) 1874 wdog_kern_pat(WD_LASTVAL); | 1871 if (first_printf == 0) 1872 wdog_kern_pat(WD_LASTVAL); |
1875#endif | 1873 |
1876 } 1877 if (!LIST_EMPTY(gslp)) { 1878 mtx_unlock(&sync_mtx); 1879 mtx_lock(&Giant); 1880 mtx_lock(&sync_mtx); 1881 while (!LIST_EMPTY(gslp)) { 1882 error = sync_vnode(gslp, &bo, td); 1883 if (error == 1) { --- 2853 unchanged lines hidden --- | 1874 } 1875 if (!LIST_EMPTY(gslp)) { 1876 mtx_unlock(&sync_mtx); 1877 mtx_lock(&Giant); 1878 mtx_lock(&sync_mtx); 1879 while (!LIST_EMPTY(gslp)) { 1880 error = sync_vnode(gslp, &bo, td); 1881 if (error == 1) { --- 2853 unchanged lines hidden --- |