summaryrefslogtreecommitdiffstats
path: root/sys/gnu/ext2fs/ext2_alloc.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-10-14 14:22:31 +0000
committerphk <phk@FreeBSD.org>1997-10-14 14:22:31 +0000
commit2b4a6ad696344abca796fc9d22083c9aab0f2834 (patch)
tree9c85a8ebde5c3bbbe903a7576bdb380fcd207b5b /sys/gnu/ext2fs/ext2_alloc.c
parent3532aa6356c57cc86d73de769f5dc582bce5bb08 (diff)
downloadFreeBSD-src-2b4a6ad696344abca796fc9d22083c9aab0f2834.zip
FreeBSD-src-2b4a6ad696344abca796fc9d22083c9aab0f2834.tar.gz
ufs_ihashrem() should not be called from the UFS layer, but from the
lower layer (LFS/FFS/?) like the rest of the ihash functions. Otherwise it is impossible to make a lower layer that doesn't use the ihash facility.
Diffstat (limited to 'sys/gnu/ext2fs/ext2_alloc.c')
-rw-r--r--sys/gnu/ext2fs/ext2_alloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/gnu/ext2fs/ext2_alloc.c b/sys/gnu/ext2fs/ext2_alloc.c
index 64e9b87..a570ce4 100644
--- a/sys/gnu/ext2fs/ext2_alloc.c
+++ b/sys/gnu/ext2fs/ext2_alloc.c
@@ -538,6 +538,8 @@ 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",
OpenPOWER on IntegriCloud