From a5666c63a674f283c50afcd24d4ecd62ac8ccb5d Mon Sep 17 00:00:00 2001 From: Pedro Martelletto Date: Fri, 31 Mar 2006 12:33:34 +0000 Subject: Teach ffs_reclaim() to put FFS2 dinodes back into their pool --- sys/ufs/ffs/ffs_vnops.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c index 49e80fb49ec..42e38662ef5 100644 --- a/sys/ufs/ffs/ffs_vnops.c +++ b/sys/ufs/ffs/ffs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_vnops.c,v 1.36 2005/12/17 13:56:01 pedro Exp $ */ +/* $OpenBSD: ffs_vnops.c,v 1.37 2006/03/31 12:33:33 pedro Exp $ */ /* $NetBSD: ffs_vnops.c,v 1.7 1996/05/11 18:27:24 mycroft Exp $ */ /* @@ -295,8 +295,14 @@ ffs_reclaim(void *v) if ((error = ufs_reclaim(vp, ap->a_p)) != 0) return (error); - if (ip->i_din1 != NULL) - pool_put(&ffs_dinode1_pool, ip->i_din1); + if (ip->i_din1 != NULL) { +#ifdef FFS2 + if (ip->i_ump->um_fstype == UM_UFS2) + pool_put(&ffs_dinode2_pool, ip->i_din2); + else +#endif + pool_put(&ffs_dinode1_pool, ip->i_din1); + } pool_put(&ffs_ino_pool, ip); -- cgit v1.2.3