Deleted Added
full compact
kern_shutdown.c (134649) kern_shutdown.c (136115)
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>
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 134649 2004-09-02 18:59:15Z scottl $");
38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 136115 2004-10-04 13:13:23Z phk $");
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>

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

289 } else if ((bp->b_flags & (B_DELWRI | B_INVAL))
290 == B_DELWRI) {
291 /* bawrite(bp);*/
292 nbusy++;
293 }
294 }
295 if (nbusy == 0) {
296 if (first_buf_printf)
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>

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

289 } else if ((bp->b_flags & (B_DELWRI | B_INVAL))
290 == B_DELWRI) {
291 /* bawrite(bp);*/
292 nbusy++;
293 }
294 }
295 if (nbusy == 0) {
296 if (first_buf_printf)
297 printf("No buffers busy after final sync");
297 printf("All buffers synced.");
298 break;
299 }
300 if (first_buf_printf) {
301 printf("Syncing disks, buffers remaining... ");
302 first_buf_printf = 0;
303 }
304 printf("%d ", nbusy);
305 if (nbusy < pbusy)

--- 314 unchanged lines hidden ---
298 break;
299 }
300 if (first_buf_printf) {
301 printf("Syncing disks, buffers remaining... ");
302 first_buf_printf = 0;
303 }
304 printf("%d ", nbusy);
305 if (nbusy < pbusy)

--- 314 unchanged lines hidden ---