move static KASSERT from mount to init

This commit is contained in:
pooka 2007-09-05 22:34:17 +00:00
parent 94525f8950
commit d7dbef6aec
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: puffs_vfsops.c,v 1.55 2007/09/04 00:11:38 pooka Exp $ */
/* $NetBSD: puffs_vfsops.c,v 1.56 2007/09/05 22:34:17 pooka Exp $ */
/*
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.55 2007/09/04 00:11:38 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.56 2007/09/05 22:34:17 pooka Exp $");
#include <sys/param.h>
#include <sys/mount.h>
@ -87,9 +87,6 @@ puffs_mount(struct mount *mp, const char *path, void *data, size_t *data_len,
if (mp->mnt_flag & MNT_UPDATE)
return EOPNOTSUPP;
/* some checks depend on this */
KASSERT(VNOVAL == VSIZENOTSET);
/*
* We need the file system name
*/
@ -678,6 +675,9 @@ void
puffs_init()
{
/* some checks depend on this */
KASSERT(VNOVAL == VSIZENOTSET);
malloc_type_attach(M_PUFFS);
pool_init(&puffs_pnpool, sizeof(struct puffs_node), 0, 0, 0,