nfs_subs.c (48125) | nfs_subs.c (48225) |
---|---|
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 * $Id: nfs_subs.c,v 1.75 1999/06/05 05:35:00 peter Exp $ | 37 * $Id: nfs_subs.c,v 1.76 1999/06/23 04:44:12 julian Exp $ |
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> --- 2137 unchanged lines hidden (view full) --- 2183 s = splbio(); 2184loop: 2185 for (vp = mp->mnt_vnodelist.lh_first; vp; vp = nvp) { 2186 if (vp->v_mount != mp) /* Paranoia */ 2187 goto loop; 2188 nvp = vp->v_mntvnodes.le_next; 2189 for (bp = TAILQ_FIRST(&vp->v_dirtyblkhd); bp; bp = nbp) { 2190 nbp = TAILQ_NEXT(bp, b_vnbufs); | 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> --- 2137 unchanged lines hidden (view full) --- 2183 s = splbio(); 2184loop: 2185 for (vp = mp->mnt_vnodelist.lh_first; vp; vp = nvp) { 2186 if (vp->v_mount != mp) /* Paranoia */ 2187 goto loop; 2188 nvp = vp->v_mntvnodes.le_next; 2189 for (bp = TAILQ_FIRST(&vp->v_dirtyblkhd); bp; bp = nbp) { 2190 nbp = TAILQ_NEXT(bp, b_vnbufs); |
2191 if ((bp->b_flags & (B_BUSY | B_DELWRI | B_NEEDCOMMIT)) | 2191 if (BUF_REFCNT(bp) == 0 && 2192 (bp->b_flags & (B_DELWRI | B_NEEDCOMMIT)) |
2192 == (B_DELWRI | B_NEEDCOMMIT)) 2193 bp->b_flags &= ~B_NEEDCOMMIT; 2194 } 2195 } 2196 splx(s); 2197} 2198 2199#ifndef NFS_NOSERVER --- 81 unchanged lines hidden --- | 2193 == (B_DELWRI | B_NEEDCOMMIT)) 2194 bp->b_flags &= ~B_NEEDCOMMIT; 2195 } 2196 } 2197 splx(s); 2198} 2199 2200#ifndef NFS_NOSERVER --- 81 unchanged lines hidden --- |