ffs_vfsops.c (175294) | ffs_vfsops.c (175486) |
---|---|
1/*- 2 * Copyright (c) 1989, 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)ffs_vfsops.c 8.31 (Berkeley) 5/20/95 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1989, 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)ffs_vfsops.c 8.31 (Berkeley) 5/20/95 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/ufs/ffs/ffs_vfsops.c 175294 2008-01-13 14:44:15Z attilio $"); | 33__FBSDID("$FreeBSD: head/sys/ufs/ffs/ffs_vfsops.c 175486 2008-01-19 17:36:23Z attilio $"); |
34 35#include "opt_mac.h" 36#include "opt_quota.h" 37#include "opt_ufs.h" 38#include "opt_ffs.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> --- 1671 unchanged lines hidden (view full) --- 1713 CTR3(KTR_BUF, "bufwrite(%p) vp %p flags %X", bp, bp->b_vp, bp->b_flags); 1714 if (bp->b_flags & B_INVAL) { 1715 brelse(bp); 1716 return (0); 1717 } 1718 1719 oldflags = bp->b_flags; 1720 | 34 35#include "opt_mac.h" 36#include "opt_quota.h" 37#include "opt_ufs.h" 38#include "opt_ffs.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> --- 1671 unchanged lines hidden (view full) --- 1713 CTR3(KTR_BUF, "bufwrite(%p) vp %p flags %X", bp, bp->b_vp, bp->b_flags); 1714 if (bp->b_flags & B_INVAL) { 1715 brelse(bp); 1716 return (0); 1717 } 1718 1719 oldflags = bp->b_flags; 1720 |
1721 if (BUF_REFCNT(bp) == 0) | 1721 if (!BUF_ISLOCKED(bp)) |
1722 panic("bufwrite: buffer is not busy???"); 1723 s = splbio(); 1724 /* 1725 * If a background write is already in progress, delay 1726 * writing this block if it is asynchronous. Otherwise 1727 * wait for the background write to complete. 1728 */ 1729 BO_LOCK(bp->b_bufobj); --- 135 unchanged lines hidden --- | 1722 panic("bufwrite: buffer is not busy???"); 1723 s = splbio(); 1724 /* 1725 * If a background write is already in progress, delay 1726 * writing this block if it is asynchronous. Otherwise 1727 * wait for the background write to complete. 1728 */ 1729 BO_LOCK(bp->b_bufobj); --- 135 unchanged lines hidden --- |