Deleted Added
full compact
vfs_export.c (30743) vfs_export.c (31016)
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.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
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.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
39 * $Id: vfs_subr.c,v 1.110 1997/10/12 20:24:26 phk Exp $
39 * $Id: vfs_subr.c,v 1.111 1997/10/26 20:55:07 phk Exp $
40 */
41
42/*
43 * External virtual filesystem routines
44 */
45#include "opt_ddb.h"
46#include "opt_devfs.h"
47

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

645
646/*
647 * Disassociate a p-buffer from a vnode.
648 */
649void
650pbrelvp(bp)
651 register struct buf *bp;
652{
40 */
41
42/*
43 * External virtual filesystem routines
44 */
45#include "opt_ddb.h"
46#include "opt_devfs.h"
47

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

645
646/*
647 * Disassociate a p-buffer from a vnode.
648 */
649void
650pbrelvp(bp)
651 register struct buf *bp;
652{
653 struct vnode *vp;
654
655#if defined(DIAGNOSTIC)
656 if (bp->b_vp == (struct vnode *) 0)
657 panic("pbrelvp: NULL");
658#endif
659
660 bp->b_vp = (struct vnode *) 0;
661}

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

1621 return 0;
1622}
1623
1624#endif /* !NO_COMPAT_PRELITE2 */
1625
1626int kinfo_vdebug = 1;
1627int kinfo_vgetfailed;
1628
653
654#if defined(DIAGNOSTIC)
655 if (bp->b_vp == (struct vnode *) 0)
656 panic("pbrelvp: NULL");
657#endif
658
659 bp->b_vp = (struct vnode *) 0;
660}

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

1620 return 0;
1621}
1622
1623#endif /* !NO_COMPAT_PRELITE2 */
1624
1625int kinfo_vdebug = 1;
1626int kinfo_vgetfailed;
1627
1628#if 0
1629#define KINFO_VNODESLOP 10
1630/*
1631 * Dump vnode list (via sysctl).
1632 * Copyout address of vnode followed by vnode.
1633 */
1634/* ARGSUSED */
1635static int
1636sysctl_vnode SYSCTL_HANDLER_ARGS

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

1681 simple_lock(&mountlist_slock);
1682 nmp = mp->mnt_list.cqe_next;
1683 vfs_unbusy(mp, p);
1684 }
1685 simple_unlock(&mountlist_slock);
1686
1687 return (0);
1688}
1629#define KINFO_VNODESLOP 10
1630/*
1631 * Dump vnode list (via sysctl).
1632 * Copyout address of vnode followed by vnode.
1633 */
1634/* ARGSUSED */
1635static int
1636sysctl_vnode SYSCTL_HANDLER_ARGS

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

1681 simple_lock(&mountlist_slock);
1682 nmp = mp->mnt_list.cqe_next;
1683 vfs_unbusy(mp, p);
1684 }
1685 simple_unlock(&mountlist_slock);
1686
1687 return (0);
1688}
1689#endif
1689
1690/*
1691 * XXX
1692 * Exporting the vnode list on large systems causes them to crash.
1693 * Exporting the vnode list on medium systems causes sysctl to coredump.
1694 */
1695#if 0
1696SYSCTL_PROC(_kern, KERN_VNODE, vnode, CTLTYPE_OPAQUE|CTLFLAG_RD,

--- 414 unchanged lines hidden ---
1690
1691/*
1692 * XXX
1693 * Exporting the vnode list on large systems causes them to crash.
1694 * Exporting the vnode list on medium systems causes sysctl to coredump.
1695 */
1696#if 0
1697SYSCTL_PROC(_kern, KERN_VNODE, vnode, CTLTYPE_OPAQUE|CTLFLAG_RD,

--- 414 unchanged lines hidden ---