Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Don't adjust the size of the hash table on file rem...



details:   https://anonhg.NetBSD.org/src/rev/c810e81391ec
branches:  trunk
changeset: 580501:c810e81391ec
user:      blymn <blymn%NetBSD.org@localhost>
date:      Tue Apr 26 10:45:41 2005 +0000

description:
Don't adjust the size of the hash table on file removes, it breaks things.

diffstat:

 sys/kern/kern_verifiedexec.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 29b20dbb6c71 -r c810e81391ec sys/kern/kern_verifiedexec.c
--- a/sys/kern/kern_verifiedexec.c      Tue Apr 26 10:28:29 2005 +0000
+++ b/sys/kern/kern_verifiedexec.c      Tue Apr 26 10:45:41 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_verifiedexec.c,v 1.12 2005/04/24 12:58:26 blymn Exp $     */
+/*     $NetBSD: kern_verifiedexec.c,v 1.13 2005/04/26 10:45:41 blymn Exp $     */
 
 /*-
  * Copyright 2005 Elad Efrat <elad%bsd.org.il@localhost>
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_verifiedexec.c,v 1.12 2005/04/24 12:58:26 blymn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_verifiedexec.c,v 1.13 2005/04/26 10:45:41 blymn Exp $");
 
 #include <sys/param.h>
 #include <sys/mount.h>
@@ -550,7 +550,6 @@
                      " in lists. Report a bug.");
        }
 
-       tbl->hash_size--;
        LIST_REMOVE(vhe, entries);
        free(vhe->fp, M_TEMP);
        free(vhe, M_TEMP);



Home | Main Index | Thread Index | Old Index