nfs_srvsubs.c (38894) | nfs_srvsubs.c (40790) |
---|---|
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.64 1998/09/05 15:17:33 bde Exp $ | 37 * $Id: nfs_subs.c,v 1.65 1998/09/07 05:42:15 bde 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> --- 2078 unchanged lines hidden (view full) --- 2124 int s; 2125 2126 s = splbio(); 2127loop: 2128 for (vp = mp->mnt_vnodelist.lh_first; vp; vp = nvp) { 2129 if (vp->v_mount != mp) /* Paranoia */ 2130 goto loop; 2131 nvp = vp->v_mntvnodes.le_next; | 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> --- 2078 unchanged lines hidden (view full) --- 2124 int s; 2125 2126 s = splbio(); 2127loop: 2128 for (vp = mp->mnt_vnodelist.lh_first; vp; vp = nvp) { 2129 if (vp->v_mount != mp) /* Paranoia */ 2130 goto loop; 2131 nvp = vp->v_mntvnodes.le_next; |
2132 for (bp = vp->v_dirtyblkhd.lh_first; bp; bp = nbp) { 2133 nbp = bp->b_vnbufs.le_next; | 2132 for (bp = TAILQ_FIRST(&vp->v_dirtyblkhd); bp; bp = nbp) { 2133 nbp = TAILQ_NEXT(bp, b_vnbufs); |
2134 if ((bp->b_flags & (B_BUSY | B_DELWRI | B_NEEDCOMMIT)) 2135 == (B_DELWRI | B_NEEDCOMMIT)) 2136 bp->b_flags &= ~B_NEEDCOMMIT; 2137 } 2138 } 2139 splx(s); 2140} 2141 --- 82 unchanged lines hidden --- | 2134 if ((bp->b_flags & (B_BUSY | B_DELWRI | B_NEEDCOMMIT)) 2135 == (B_DELWRI | B_NEEDCOMMIT)) 2136 bp->b_flags &= ~B_NEEDCOMMIT; 2137 } 2138 } 2139 splx(s); 2140} 2141 --- 82 unchanged lines hidden --- |