From 072199cd578da1b2b89df933f9465e13634abad2 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 14 Oct 1997 18:51:07 +0000 Subject: [PATCH] Reset the flag right away, could catch a bogon someday. --- sys/gnu/ext2fs/ext2_ihash.c | 3 ++- sys/ufs/ufs/ufs_ihash.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/gnu/ext2fs/ext2_ihash.c b/sys/gnu/ext2fs/ext2_ihash.c index e536e1ef2751..8d41313ef571 100644 --- a/sys/gnu/ext2fs/ext2_ihash.c +++ b/sys/gnu/ext2fs/ext2_ihash.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ufs_ihash.c 8.7 (Berkeley) 5/17/95 - * $Id: ufs_ihash.c,v 1.9 1997/10/12 20:26:21 phk Exp $ + * $Id: ufs_ihash.c,v 1.10 1997/10/14 18:46:47 phk Exp $ */ #include @@ -144,6 +144,7 @@ ufs_ihashrem(ip) { simple_lock(&ufs_ihash_slock); if (ip->i_flags & IN_HASHED) { + ip->i_flags &= ~IN_HASHED; LIST_REMOVE(ip, i_hash); #ifdef DIAGNOSTIC ip->i_hash.le_next = NULL; diff --git a/sys/ufs/ufs/ufs_ihash.c b/sys/ufs/ufs/ufs_ihash.c index e536e1ef2751..8d41313ef571 100644 --- a/sys/ufs/ufs/ufs_ihash.c +++ b/sys/ufs/ufs/ufs_ihash.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ufs_ihash.c 8.7 (Berkeley) 5/17/95 - * $Id: ufs_ihash.c,v 1.9 1997/10/12 20:26:21 phk Exp $ + * $Id: ufs_ihash.c,v 1.10 1997/10/14 18:46:47 phk Exp $ */ #include @@ -144,6 +144,7 @@ ufs_ihashrem(ip) { simple_lock(&ufs_ihash_slock); if (ip->i_flags & IN_HASHED) { + ip->i_flags &= ~IN_HASHED; LIST_REMOVE(ip, i_hash); #ifdef DIAGNOSTIC ip->i_hash.le_next = NULL;