From 5fb1263e0f7e20f497387fa84c54d4c96d3ce595 Mon Sep 17 00:00:00 2001 From: Pedro Martelletto Date: Fri, 31 Mar 2006 12:19:43 +0000 Subject: Add a pool for FFS2 dinodes --- sys/ufs/ffs/ffs_extern.h | 5 ++++- sys/ufs/ffs/ffs_vfsops.c | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/sys/ufs/ffs/ffs_extern.h b/sys/ufs/ffs/ffs_extern.h index 933de638874..b1f36f21d71 100644 --- a/sys/ufs/ffs/ffs_extern.h +++ b/sys/ufs/ffs/ffs_extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_extern.h,v 1.27 2006/03/11 21:00:48 pedro Exp $ */ +/* $OpenBSD: ffs_extern.h,v 1.28 2006/03/31 12:19:42 pedro Exp $ */ /* $NetBSD: ffs_extern.h,v 1.4 1996/02/09 22:22:22 christos Exp $ */ /* @@ -199,3 +199,6 @@ extern int (**ffs_fifoop_p)(void *); extern struct pool ffs_ino_pool; /* memory pool for inodes */ extern struct pool ffs_dinode1_pool; /* memory pool for UFS1 dinodes */ +#ifdef FFS2 +extern struct pool ffs_dinode2_pool; /* memory pool for UFS2 dinodes */ +#endif diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index af74eb3cfe1..17b071d5a8a 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_vfsops.c,v 1.83 2006/03/31 08:13:07 pedro Exp $ */ +/* $OpenBSD: ffs_vfsops.c,v 1.84 2006/03/31 12:19:42 pedro Exp $ */ /* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */ /* @@ -1422,6 +1422,10 @@ ffs_init(struct vfsconf *vfsp) &pool_allocator_nointr); pool_init(&ffs_dinode1_pool, sizeof(struct ufs1_dinode), 0, 0, 0, "dino1pl", &pool_allocator_nointr); +#ifdef FFS2 + pool_init(&ffs_dinode2_pool, sizeof(struct ufs2_dinode), 0, 0, 0, + "dino2pl", &pool_allocator_nointr); +#endif softdep_initialize(); -- cgit v1.2.3