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 130640 2004-06-17 17:16:53Z phk $"); |
39 40#include "opt_ddb.h" 41#include "opt_ddb_trace.h" 42#include "opt_ddb_unattended.h" 43#include "opt_hw_wdog.h" 44#include "opt_mac.h" 45#include "opt_panic.h" 46#include "opt_show_busybufs.h" --- 272 unchanged lines hidden (view full) --- 319 /* 320 * Count only busy local buffers to prevent forcing 321 * a fsck if we're just a client of a wedged NFS server 322 */ 323 nbusy = 0; 324 for (bp = &buf[nbuf]; --bp >= buf; ) { 325 if (((bp->b_flags&B_INVAL) == 0 && BUF_REFCNT(bp)) || 326 ((bp->b_flags & (B_DELWRI|B_INVAL)) == B_DELWRI)) { |
327 if (bp->b_dev == NULL) { |
328 TAILQ_REMOVE(&mountlist, 329 bp->b_vp->v_mount, mnt_list); 330 continue; 331 } 332 nbusy++; 333#if defined(SHOW_BUSYBUFS) || defined(DIAGNOSTIC) 334 printf( 335 "%d: dev:%s, flags:%0x, blkno:%ld, lblkno:%ld\n", --- 289 unchanged lines hidden --- |