lint
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 25 Aug 1990 01:02:14 +0000 (17:02 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 25 Aug 1990 01:02:14 +0000 (17:02 -0800)
SCCS-vsn: sys/kern/vfs_cache.c 7.7
SCCS-vsn: sys/kern/vfs_subr.c 7.48

usr/src/sys/kern/vfs_cache.c
usr/src/sys/kern/vfs_subr.c

index a25c90c..834ce49 100644 (file)
@@ -4,12 +4,13 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)vfs_cache.c 7.6 (Berkeley) %G%
+ *     @(#)vfs_cache.c 7.7 (Berkeley) %G%
  */
 
 #include "param.h"
 #include "systm.h"
 #include "time.h"
  */
 
 #include "param.h"
 #include "systm.h"
 #include "time.h"
+#include "mount.h"
 #include "vnode.h"
 #include "namei.h"
 #include "errno.h"
 #include "vnode.h"
 #include "namei.h"
 #include "errno.h"
@@ -171,7 +172,7 @@ cache_enter(ndp)
         */
        if (numcache < desiredvnodes) {
                ncp = (struct namecache *)
         */
        if (numcache < desiredvnodes) {
                ncp = (struct namecache *)
-                       malloc(sizeof *ncp, M_CACHE, M_WAITOK);
+                       malloc((u_long)sizeof *ncp, M_CACHE, M_WAITOK);
                bzero((char *)ncp, sizeof *ncp);
                numcache++;
        } else if (ncp = nchhead) {
                bzero((char *)ncp, sizeof *ncp);
                numcache++;
        } else if (ncp = nchhead) {
@@ -218,7 +219,8 @@ nchinit()
        nchtail = &nchhead;
        nchashsize = roundup((desiredvnodes + 1) * sizeof *nchp / 2,
                NBPG * CLSIZE);
        nchtail = &nchhead;
        nchashsize = roundup((desiredvnodes + 1) * sizeof *nchp / 2,
                NBPG * CLSIZE);
-       nchashtbl = (union nchash *)malloc(nchashsize, M_CACHE, M_WAITOK);
+       nchashtbl = (union nchash *)malloc((u_long)nchashsize,
+           M_CACHE, M_WAITOK);
        for (nchash = 1; nchash <= nchashsize / sizeof *nchp; nchash <<= 1)
                /* void */;
        nchash = (nchash >> 1) - 1;
        for (nchash = 1; nchash <= nchashsize / sizeof *nchp; nchash <<= 1)
                /* void */;
        nchash = (nchash >> 1) - 1;
@@ -260,7 +262,7 @@ cache_purge(vp)
  * inode.  This makes the algorithm O(n^2), but do you think I care?
  */
 cache_purgevfs(mp)
  * inode.  This makes the algorithm O(n^2), but do you think I care?
  */
 cache_purgevfs(mp)
-       register struct mount *mp;
+       struct mount *mp;
 {
        register struct namecache *ncp, *nxtcp;
 
 {
        register struct namecache *ncp, *nxtcp;
 
index aa8b1fb..d4d497d 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)vfs_subr.c  7.47 (Berkeley) %G%
+ *     @(#)vfs_subr.c  7.48 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -94,7 +94,6 @@ vfs_busy(mp)
  * Free a busy filesystem.
  * Panic if filesystem is not busy.
  */
  * Free a busy filesystem.
  * Panic if filesystem is not busy.
  */
-void
 vfs_unbusy(mp)
        register struct mount *mp;
 {
 vfs_unbusy(mp)
        register struct mount *mp;
 {
@@ -234,7 +233,8 @@ getnewvnode(tag, mp, vops, vpp)
        register struct vnode *vp, *vq;
 
        if (numvnodes < desiredvnodes) {
        register struct vnode *vp, *vq;
 
        if (numvnodes < desiredvnodes) {
-               vp = (struct vnode *)malloc(sizeof *vp, M_VNODE, M_WAITOK);
+               vp = (struct vnode *)malloc((u_long)sizeof *vp,
+                   M_VNODE, M_WAITOK);
                bzero((char *)vp, sizeof *vp);
                numvnodes++;
        } else {
                bzero((char *)vp, sizeof *vp);
                numvnodes++;
        } else {
@@ -574,7 +574,7 @@ loop:
  */
 void vclean(vp, flags)
        register struct vnode *vp;
  */
 void vclean(vp, flags)
        register struct vnode *vp;
-       long flags;
+       int flags;
 {
        struct vnodeops *origops;
        int active;
 {
        struct vnodeops *origops;
        int active;
@@ -862,14 +862,15 @@ int kinfo_vgetfailed;
  * Dump vnode list (via kinfo).
  * Copyout address of vnode followed by vnode.
  */
  * Dump vnode list (via kinfo).
  * Copyout address of vnode followed by vnode.
  */
+/* ARGSUSED */
 kinfo_vnode(op, where, acopysize, arg, aneeded)
 kinfo_vnode(op, where, acopysize, arg, aneeded)
+       int op;
        char *where;
        char *where;
-       int *acopysize, *aneeded;
+       int *acopysize, arg, *aneeded;
 {
        register struct mount *mp = rootfs;
        struct mount *omp;
        struct vnode *vp;
 {
        register struct mount *mp = rootfs;
        struct mount *omp;
        struct vnode *vp;
-       register needed = 0;
        register char *bp = where, *savebp;
        char *ewhere = where + *acopysize;
        int error;
        register char *bp = where, *savebp;
        char *ewhere = where + *acopysize;
        int error;