Deleted Added
full compact
vfs_export.c (42957) vfs_export.c (43311)
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.182 1999/01/10 01:58:26 eivind Exp $
39 * $Id: vfs_subr.c,v 1.183 1999/01/21 08:29:05 dillon Exp $
40 */
41
42/*
43 * External virtual filesystem routines
44 */
45#include "opt_ddb.h"
46
47#include <sys/param.h>

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

1589 * occur while the underlying object is being cleaned out.
1590 */
1591 VOP_LOCK(vp, LK_DRAIN | LK_INTERLOCK, p);
1592
1593 /*
1594 * Clean out any buffers associated with the vnode.
1595 */
1596 vinvalbuf(vp, V_SAVE, NOCRED, p, 0, 0);
40 */
41
42/*
43 * External virtual filesystem routines
44 */
45#include "opt_ddb.h"
46
47#include <sys/param.h>

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

1589 * occur while the underlying object is being cleaned out.
1590 */
1591 VOP_LOCK(vp, LK_DRAIN | LK_INTERLOCK, p);
1592
1593 /*
1594 * Clean out any buffers associated with the vnode.
1595 */
1596 vinvalbuf(vp, V_SAVE, NOCRED, p, 0, 0);
1597 if (obj = vp->v_object) {
1597 if ((obj = vp->v_object) != NULL) {
1598 if (obj->ref_count == 0) {
1599 /*
1600 * This is a normal way of shutting down the object/vnode
1601 * association.
1602 */
1603 vm_object_terminate(obj);
1604 } else {
1605 /*

--- 1267 unchanged lines hidden ---
1598 if (obj->ref_count == 0) {
1599 /*
1600 * This is a normal way of shutting down the object/vnode
1601 * association.
1602 */
1603 vm_object_terminate(obj);
1604 } else {
1605 /*

--- 1267 unchanged lines hidden ---