summaryrefslogtreecommitdiff
path: root/sys/ufs/ffs/ffs_vfsops.c
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-04-12 17:16:53 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-04-12 17:16:53 +0000
commit3391dc2dee9e5aeda119a7f3488b3920d36c8cee (patch)
tree6e62f822fb98eb0e9e9f4c61625364f0852f4d2a /sys/ufs/ffs/ffs_vfsops.c
parent007356ecb946e507202d5207c74a01ceccfd6c98 (diff)
Allow kernels with just MFS and no FFS. Fixes PR#323.
Diffstat (limited to 'sys/ufs/ffs/ffs_vfsops.c')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index e62006043ad..10d31c10e67 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.36 2001/04/06 20:43:31 gluk Exp $ */
+/* $OpenBSD: ffs_vfsops.c,v 1.37 2001/04/12 17:16:52 csapuntz Exp $ */
/* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */
/*
@@ -1287,9 +1287,13 @@ int
ffs_init(vfsp)
struct vfsconf *vfsp;
{
+ static int done;
+ if (done)
+ return (0);
+ done = 1;
pool_init(&ffs_ino_pool, sizeof(struct inode), 0, 0, 0, "ffsino",
- 0, pool_page_alloc_nointr, pool_page_free_nointr, M_FFSNODE);
+ 0, pool_page_alloc_nointr, pool_page_free_nointr, M_FFSNODE);
softdep_initialize();
return (ufs_init(vfsp));
}