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/lfs pull up rev 1.31 from trunk (requested by m...



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

description:
pull up rev 1.31 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/lfs/lfs_segment.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 50ebdd2825dd -r 05e04eb54fdc sys/ufs/lfs/lfs_segment.c
--- a/sys/ufs/lfs/lfs_segment.c Sun Oct 10 20:51:23 1999 +0000
+++ b/sys/ufs/lfs/lfs_segment.c Sun Oct 10 20:51:48 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_segment.c,v 1.23.2.3 1999/09/03 09:00:13 he Exp $  */
+/*     $NetBSD: lfs_segment.c,v 1.23.2.4 1999/10/10 20:51:48 cgd Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -244,7 +244,7 @@
                /* panic("VDIROP being flushed...this can\'t happen"); */
        }
        if(vp->v_usecount<0) {
-               printf("usecount=%d\n",vp->v_usecount);
+               printf("usecount=%ld\n",vp->v_usecount);
                panic("lfs_vflush: usecount<0");
        }
 #endif
@@ -1579,7 +1579,7 @@
 #ifdef DIAGNOSTIC
        if(vp->v_usecount<=0) {
                printf("lfs_vunref: flags are 0x%lx\n", vp->v_flag);
-               printf("lfs_vunref: usecount = %d\n", vp->v_usecount);
+               printf("lfs_vunref: usecount = %ld\n", vp->v_usecount);
                panic("lfs_vunref: v_usecount<0");
        }
 #endif



Home | Main Index | Thread Index | Old Index