Deleted Added
full compact
vfs_subr.c (296373) vfs_subr.c (307929)
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: releng/10.3/sys/kern/vfs_subr.c 295905 2016-02-23 01:09:35Z marius $");
42__FBSDID("$FreeBSD: releng/10.3/sys/kern/vfs_subr.c 307929 2016-10-25 16:45:55Z glebius $");
43
44#include "opt_compat.h"
45#include "opt_ddb.h"
46#include "opt_watchdog.h"
47
48#include <sys/param.h>
49#include <sys/systm.h>
50#include <sys/bio.h>

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

2929 }
2930
2931 BO_LOCK(&vp->v_bufobj);
2932 KASSERT(TAILQ_EMPTY(&vp->v_bufobj.bo_dirty.bv_hd) &&
2933 vp->v_bufobj.bo_dirty.bv_cnt == 0 &&
2934 TAILQ_EMPTY(&vp->v_bufobj.bo_clean.bv_hd) &&
2935 vp->v_bufobj.bo_clean.bv_cnt == 0,
2936 ("vp %p bufobj not invalidated", vp));
43
44#include "opt_compat.h"
45#include "opt_ddb.h"
46#include "opt_watchdog.h"
47
48#include <sys/param.h>
49#include <sys/systm.h>
50#include <sys/bio.h>

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

2929 }
2930
2931 BO_LOCK(&vp->v_bufobj);
2932 KASSERT(TAILQ_EMPTY(&vp->v_bufobj.bo_dirty.bv_hd) &&
2933 vp->v_bufobj.bo_dirty.bv_cnt == 0 &&
2934 TAILQ_EMPTY(&vp->v_bufobj.bo_clean.bv_hd) &&
2935 vp->v_bufobj.bo_clean.bv_cnt == 0,
2936 ("vp %p bufobj not invalidated", vp));
2937 vp->v_bufobj.bo_flag |= BO_DEAD;
2937
2938 /*
2939 * For VMIO bufobj, BO_DEAD is set in vm_object_terminate()
2940 * after the object's page queue is flushed.
2941 */
2942 if (vp->v_bufobj.bo_object == NULL)
2943 vp->v_bufobj.bo_flag |= BO_DEAD;
2938 BO_UNLOCK(&vp->v_bufobj);
2939
2940 /*
2941 * Reclaim the vnode.
2942 */
2943 if (VOP_RECLAIM(vp, td))
2944 panic("vgone: cannot reclaim");
2945 if (mp != NULL)

--- 2033 unchanged lines hidden ---
2944 BO_UNLOCK(&vp->v_bufobj);
2945
2946 /*
2947 * Reclaim the vnode.
2948 */
2949 if (VOP_RECLAIM(vp, td))
2950 panic("vgone: cannot reclaim");
2951 if (mp != NULL)

--- 2033 unchanged lines hidden ---