Reset the flag right away, could catch a bogon someday.
This commit is contained in:
parent
15a4cff98f
commit
03bfa835e8
@ -31,7 +31,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)ufs_ihash.c 8.7 (Berkeley) 5/17/95
|
* @(#)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>
|
#include <sys/param.h>
|
||||||
@ -144,6 +144,7 @@ ufs_ihashrem(ip)
|
|||||||
{
|
{
|
||||||
simple_lock(&ufs_ihash_slock);
|
simple_lock(&ufs_ihash_slock);
|
||||||
if (ip->i_flags & IN_HASHED) {
|
if (ip->i_flags & IN_HASHED) {
|
||||||
|
ip->i_flags &= ~IN_HASHED;
|
||||||
LIST_REMOVE(ip, i_hash);
|
LIST_REMOVE(ip, i_hash);
|
||||||
#ifdef DIAGNOSTIC
|
#ifdef DIAGNOSTIC
|
||||||
ip->i_hash.le_next = NULL;
|
ip->i_hash.le_next = NULL;
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)ufs_ihash.c 8.7 (Berkeley) 5/17/95
|
* @(#)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>
|
#include <sys/param.h>
|
||||||
@ -144,6 +144,7 @@ ufs_ihashrem(ip)
|
|||||||
{
|
{
|
||||||
simple_lock(&ufs_ihash_slock);
|
simple_lock(&ufs_ihash_slock);
|
||||||
if (ip->i_flags & IN_HASHED) {
|
if (ip->i_flags & IN_HASHED) {
|
||||||
|
ip->i_flags &= ~IN_HASHED;
|
||||||
LIST_REMOVE(ip, i_hash);
|
LIST_REMOVE(ip, i_hash);
|
||||||
#ifdef DIAGNOSTIC
|
#ifdef DIAGNOSTIC
|
||||||
ip->i_hash.le_next = NULL;
|
ip->i_hash.le_next = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user