Reset the flag right away, could catch a bogon someday.

This commit is contained in:
phk 1997-10-14 18:51:07 +00:00
parent 15a4cff98f
commit 03bfa835e8
2 changed files with 4 additions and 2 deletions

View File

@ -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 <sys/param.h>
@ -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;

View File

@ -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 <sys/param.h>
@ -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;