Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/sys pull up rev 1.65 from trunk (requested by mycro...



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

description:
pull up rev 1.65 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/sys/vnode.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 4fb8059025ae -r 50ebdd2825dd sys/sys/vnode.h
--- a/sys/sys/vnode.h   Sun Oct 10 20:51:15 1999 +0000
+++ b/sys/sys/vnode.h   Sun Oct 10 20:51:23 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vnode.h,v 1.59 1999/03/24 05:51:29 mrg Exp $   */
+/*     $NetBSD: vnode.h,v 1.59.2.1 1999/10/10 20:51:23 cgd Exp $       */
 
 /*
  * Copyright (c) 1989, 1993
@@ -86,8 +86,8 @@
 struct vnode {
        struct uvm_vnode v_uvm;                 /* uvm data */
        u_long  v_flag;                         /* vnode flags (see below) */
-       short   v_usecount;                     /* reference count of users */
-       short   v_writecount;                   /* reference count of writers */
+       long    v_usecount;                     /* reference count of users */
+       long    v_writecount;                   /* reference count of writers */
        long    v_holdcnt;                      /* page & buffer references */
        daddr_t v_lastr;                        /* last read (read-ahead) */
        u_long  v_id;                           /* capability identifier */



Home | Main Index | Thread Index | Old Index