> diff --git a/sys/fs/pseudofs/pseudofs_vncache.c b/sys/fs/pseudofs/pseudofs_vncache.c > index 3145870..a92a446 100644 That patch seems to be OK. Looking at the nearby code: The pseudofs cache somtimes crashed my machine during reboot due to an accounting irregularity when pfs_vncache_alloc tries to resolve race (e.g. "panic: -10 vncache entries remaining"). I now use this patch (only decrease pfs_vncache_entries if entry was in cache): Index: pseudofs_vncache.c =================================================================== --- pseudofs_vncache.c (revision 196724) +++ pseudofs_vncache.c (working copy) @@ -245,11 +245,13 @@ KASSERT(pvd != NULL, ("pfs_vncache_free(): no vnode data\n")); if (pvd->pvd_next) pvd->pvd_next->pvd_prev = pvd->pvd_prev; - if (pvd->pvd_prev) + if (pvd->pvd_prev) { pvd->pvd_prev->pvd_next = pvd->pvd_next; - else if (pfs_vncache == pvd) + --pfs_vncache_entries; + } else if (pfs_vncache == pvd) { pfs_vncache = pvd->pvd_next; - --pfs_vncache_entries; + --pfs_vncache_entries; + } mtx_unlock(&pfs_vncache_mutex); free(pvd, M_PFSVNCACHE); - Tor Egge