From 2b4a6ad696344abca796fc9d22083c9aab0f2834 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 14 Oct 1997 14:22:31 +0000 Subject: 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. --- sys/ufs/ffs/ffs_alloc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/ufs/ffs/ffs_alloc.c') diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index a4c1173..056246a 100644 --- a/sys/ufs/ffs/ffs_alloc.c +++ b/sys/ufs/ffs/ffs_alloc.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ffs_alloc.c 8.18 (Berkeley) 5/26/95 - * $Id: ffs_alloc.c,v 1.36 1997/09/18 18:07:45 phk Exp $ + * $Id: ffs_alloc.c,v 1.37 1997/09/19 11:13:16 phk Exp $ */ #include "opt_quota.h" @@ -48,6 +48,7 @@ #include #include +#include #include #include @@ -1419,6 +1420,8 @@ ffs_vfree(ap) int error, cg; pip = VTOI(ap->a_pvp); + /* Remove the inode from its hash chain */ + ufs_ihashrem(pip); fs = pip->i_fs; if ((u_int)ino >= fs->fs_ipg * fs->fs_ncg) panic("ffs_vfree: range: dev = 0x%x, ino = %d, fs = %s", -- cgit v1.1