diff options
author | phk <phk@FreeBSD.org> | 1997-10-14 18:46:48 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-10-14 18:46:48 +0000 |
commit | 15a4cff98fa6536424b94a22e832812b22fdc0fd (patch) | |
tree | 8da8b82beb5af42385e9146956feb328905614ed /sys/gnu/fs | |
parent | f239670138341525c55ec5ee2f164d1d9c3a66ad (diff) | |
download | FreeBSD-src-15a4cff98fa6536424b94a22e832812b22fdc0fd.zip FreeBSD-src-15a4cff98fa6536424b94a22e832812b22fdc0fd.tar.gz |
I think my previous change may have opened a race conditio.
This patch does the same thing, with no change in semantics.
Diffstat (limited to 'sys/gnu/fs')
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_alloc.c | 2 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/inode.h | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_alloc.c b/sys/gnu/fs/ext2fs/ext2_alloc.c index a570ce4..64e9b87 100644 --- a/sys/gnu/fs/ext2fs/ext2_alloc.c +++ b/sys/gnu/fs/ext2fs/ext2_alloc.c @@ -538,8 +538,6 @@ ext2_vfree(ap) int mode; pip = VTOI(ap->a_pvp); - /* Remove the inode from its hash chain */ - ufs_ihashrem(pip); fs = pip->i_e2fs; if ((u_int)ino >= fs->s_inodes_per_group * fs->s_groups_count) panic("ifree: range: dev = 0x%x, ino = %d, fs = %s", diff --git a/sys/gnu/fs/ext2fs/inode.h b/sys/gnu/fs/ext2fs/inode.h index 4647136..8a7e935 100644 --- a/sys/gnu/fs/ext2fs/inode.h +++ b/sys/gnu/fs/ext2fs/inode.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)inode.h 8.9 (Berkeley) 5/14/95 - * $Id: inode.h,v 1.15 1997/05/22 07:30:55 phk Exp $ + * $Id: inode.h,v 1.16 1997/07/13 15:40:31 bde Exp $ */ #ifndef _UFS_UFS_INODE_H_ @@ -121,6 +121,7 @@ struct inode { #define IN_RENAME 0x0010 /* Inode is being renamed. */ #define IN_SHLOCK 0x0020 /* File has shared lock. */ #define IN_EXLOCK 0x0040 /* File has exclusive lock. */ +#define IN_HASHED 0x0080 /* Inode is on hash list */ #ifdef KERNEL /* |