summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2006-03-31 12:19:43 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2006-03-31 12:19:43 +0000
commit5fb1263e0f7e20f497387fa84c54d4c96d3ce595 (patch)
treeac4575965cbfe21c2c40baea5cec92ee6695a086
parent02923c4d7b67f52f542ecfde27a4de7398ceb27a (diff)
Add a pool for FFS2 dinodes
-rw-r--r--sys/ufs/ffs/ffs_extern.h5
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c6
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();