Deleted Added
full compact
nfs_common.c (78911) nfs_common.c (79224)
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95
37 * $FreeBSD: head/sys/nfs/nfs_common.c 78911 2001-06-28 04:10:07Z jhb $
37 * $FreeBSD: head/sys/nfs/nfs_common.c 79224 2001-07-04 16:20:28Z dillon $
38 */
39
40/*
41 * These functions support the macros and help fiddle mbuf chains for
42 * the nfs op functions. They do things like create the rpc header and
43 * copy data between mbuf chains and uio lists.
44 */
45#include <sys/param.h>

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

2133void
2134nfs_clearcommit(mp)
2135 struct mount *mp;
2136{
2137 register struct vnode *vp, *nvp;
2138 register struct buf *bp, *nbp;
2139 int s;
2140
38 */
39
40/*
41 * These functions support the macros and help fiddle mbuf chains for
42 * the nfs op functions. They do things like create the rpc header and
43 * copy data between mbuf chains and uio lists.
44 */
45#include <sys/param.h>

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

2133void
2134nfs_clearcommit(mp)
2135 struct mount *mp;
2136{
2137 register struct vnode *vp, *nvp;
2138 register struct buf *bp, *nbp;
2139 int s;
2140
2141 GIANT_REQUIRED;
2142
2141 s = splbio();
2143 s = splbio();
2142 mtx_assert(&Giant, MA_OWNED);
2143 mtx_assert(&vm_mtx, MA_NOTOWNED);
2144 mtx_lock(&mntvnode_mtx);
2145loop:
2146 for (vp = LIST_FIRST(&mp->mnt_vnodelist); vp; vp = nvp) {
2147 if (vp->v_mount != mp) /* Paranoia */
2148 goto loop;
2149 nvp = LIST_NEXT(vp, v_mntvnodes);
2150 for (bp = TAILQ_FIRST(&vp->v_dirtyblkhd); bp; bp = nbp) {
2151 nbp = TAILQ_NEXT(bp, b_vnbufs);

--- 92 unchanged lines hidden ---
2144 mtx_lock(&mntvnode_mtx);
2145loop:
2146 for (vp = LIST_FIRST(&mp->mnt_vnodelist); vp; vp = nvp) {
2147 if (vp->v_mount != mp) /* Paranoia */
2148 goto loop;
2149 nvp = LIST_NEXT(vp, v_mntvnodes);
2150 for (bp = TAILQ_FIRST(&vp->v_dirtyblkhd); bp; bp = nbp) {
2151 nbp = TAILQ_NEXT(bp, b_vnbufs);

--- 92 unchanged lines hidden ---