Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/ufs/mfs pull up rev 1.18 from trunk (requested by m...



details:   https://anonhg.NetBSD.org/src/rev/8987bab4e373
branches:  netbsd-1-4
changeset: 469559:8987bab4e373
user:      cgd <cgd%NetBSD.org@localhost>
date:      Sun Oct 10 20:51:58 1999 +0000

description:
pull up rev 1.18 from trunk (requested by mycroft):
  Fix potential overflow of v_usecount and v_writecount (and panics
  resulting from this) by widening them to `long'.  Mostly affects
  systems where maxvnodes>=32768.

diffstat:

 sys/ufs/mfs/mfs_vnops.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 05e04eb54fdc -r 8987bab4e373 sys/ufs/mfs/mfs_vnops.c
--- a/sys/ufs/mfs/mfs_vnops.c   Sun Oct 10 20:51:48 1999 +0000
+++ b/sys/ufs/mfs/mfs_vnops.c   Sun Oct 10 20:51:58 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mfs_vnops.c,v 1.16 1999/03/15 00:18:24 chs Exp $       */
+/*     $NetBSD: mfs_vnops.c,v 1.16.2.1 1999/10/10 20:51:58 cgd Exp $   */
 
 /*
  * Copyright (c) 1989, 1993
@@ -255,7 +255,7 @@
         * vnode, so if we find any other uses, it is a panic.
         */
        if (vp->v_usecount > 1)
-               printf("mfs_close: ref count %d > 1\n", vp->v_usecount);
+               printf("mfs_close: ref count %ld > 1\n", vp->v_usecount);
        if (vp->v_usecount > 1 || mfsp->mfs_buflist)
                panic("mfs_close");
        /*



Home | Main Index | Thread Index | Old Index