Cut the number of dependencies to reduce problems on low-memory machines.
authorart <art@openbsd.org>
Sat, 4 Mar 2000 16:40:29 +0000 (16:40 +0000)
committerart <art@openbsd.org>
Sat, 4 Mar 2000 16:40:29 +0000 (16:40 +0000)
sys/ufs/ffs/ffs_softdep.c

index b82a65a..007c484 100644 (file)
@@ -874,7 +874,7 @@ softdep_initialize()
 
        LIST_INIT(&mkdirlisthd);
        LIST_INIT(&softdep_workitem_pending);
-       max_softdeps = desiredvnodes * (32 / sizeof(register_t));
+       max_softdeps = desiredvnodes * (16 / sizeof(register_t));
        pagedep_hashtbl = hashinit(desiredvnodes / 5, M_PAGEDEP, M_WAITOK,
            &pagedep_hash);
        sema_init(&pagedep_in_progress, "pagedep", PRIBIO, 0);