Deleted Added
full compact
nfs_subs.c (36979) nfs_subs.c (37089)
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.61 1998/05/31 20:08:55 peter Exp $
37 * $Id: nfs_subs.c,v 1.62 1998/06/14 15:52:00 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>

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

1408
1409#ifdef NFS_ACDEBUG
1410 if (nfs_acdebug > 2)
1411 printf("acregmin %d; acregmax %d; acdirmin %d; acdirmax %d\n",
1412 nmp->nm_acregmin, nmp->nm_acregmax,
1413 nmp->nm_acdirmin, nmp->nm_acdirmax);
1414
1415 if (nfs_acdebug)
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>

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

1408
1409#ifdef NFS_ACDEBUG
1410 if (nfs_acdebug > 2)
1411 printf("acregmin %d; acregmax %d; acdirmin %d; acdirmax %d\n",
1412 nmp->nm_acregmin, nmp->nm_acregmax,
1413 nmp->nm_acdirmin, nmp->nm_acdirmax);
1414
1415 if (nfs_acdebug)
1416 printf("nfs_getattrcache: age = %d; final timeo = %d\n",r
1416 printf("nfs_getattrcache: age = %d; final timeo = %d\n",
1417 (time_second - np->n_attrstamp), timeo);
1418#endif
1419
1420 if ((time_second - np->n_attrstamp) >= timeo) {
1421 nfsstats.attrcache_misses++;
1422 return (ENOENT);
1423 }
1424 nfsstats.attrcache_hits++;

--- 767 unchanged lines hidden ---
1417 (time_second - np->n_attrstamp), timeo);
1418#endif
1419
1420 if ((time_second - np->n_attrstamp) >= timeo) {
1421 nfsstats.attrcache_misses++;
1422 return (ENOENT);
1423 }
1424 nfsstats.attrcache_hits++;

--- 767 unchanged lines hidden ---