mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Reset the flag right away, could catch a bogon someday.
This commit is contained in:
parent
40715905a7
commit
072199cd57
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=30419
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user