Deleted Added
full compact
vfs_subr.c (137170) vfs_subr.c (137186)
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 137170 2004-11-03 21:09:23Z phk $");
42__FBSDID("$FreeBSD: head/sys/kern/vfs_subr.c 137186 2004-11-04 07:59:57Z phk $");
43
44#include "opt_ddb.h"
45#include "opt_mac.h"
46
47#include <sys/param.h>
48#include <sys/systm.h>
49#include <sys/bio.h>
50#include <sys/buf.h>

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

1373
1374 KASSERT((bp->b_xflags & (BX_VNDIRTY|BX_VNCLEAN)) == 0,
1375 ("bgetvp: bp already attached! %p", bp));
1376
1377 ASSERT_VI_LOCKED(vp, "bgetvp");
1378 vholdl(vp);
1379 bp->b_vp = vp;
1380 bp->b_bufobj = &vp->v_bufobj;
43
44#include "opt_ddb.h"
45#include "opt_mac.h"
46
47#include <sys/param.h>
48#include <sys/systm.h>
49#include <sys/bio.h>
50#include <sys/buf.h>

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

1373
1374 KASSERT((bp->b_xflags & (BX_VNDIRTY|BX_VNCLEAN)) == 0,
1375 ("bgetvp: bp already attached! %p", bp));
1376
1377 ASSERT_VI_LOCKED(vp, "bgetvp");
1378 vholdl(vp);
1379 bp->b_vp = vp;
1380 bp->b_bufobj = &vp->v_bufobj;
1381 bp->b_dev = vn_todev(vp);
1382 /*
1383 * Insert onto list for new vnode.
1384 */
1385 buf_vlist_add(bp, &vp->v_bufobj, BX_VNCLEAN);
1386}
1387
1388/*
1389 * Disassociate a buffer from a vnode.

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

1694 register struct vnode *vp;
1695 register struct buf *bp;
1696{
1697
1698 KASSERT(bp->b_vp == NULL, ("pbgetvp: not free"));
1699
1700 bp->b_vp = vp;
1701 bp->b_flags |= B_PAGING;
1381 /*
1382 * Insert onto list for new vnode.
1383 */
1384 buf_vlist_add(bp, &vp->v_bufobj, BX_VNCLEAN);
1385}
1386
1387/*
1388 * Disassociate a buffer from a vnode.

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

1693 register struct vnode *vp;
1694 register struct buf *bp;
1695{
1696
1697 KASSERT(bp->b_vp == NULL, ("pbgetvp: not free"));
1698
1699 bp->b_vp = vp;
1700 bp->b_flags |= B_PAGING;
1702 bp->b_dev = vn_todev(vp);
1703 bp->b_bufobj = &vp->v_bufobj;
1704}
1705
1706/*
1707 * Disassociate a p-buffer from a vnode.
1708 */
1709void
1710pbrelvp(bp)

--- 2279 unchanged lines hidden ---
1701 bp->b_bufobj = &vp->v_bufobj;
1702}
1703
1704/*
1705 * Disassociate a p-buffer from a vnode.
1706 */
1707void
1708pbrelvp(bp)

--- 2279 unchanged lines hidden ---