summaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-03-15 20:37:26 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-03-15 20:37:26 +0000
commit268338c2d299b8b6ce5e1fb6f88aaf44bf9bc35c (patch)
treed36c6f2a2ffb191ead2ee6283213eef4df918b65 /sys/ufs
parent2a959f3ff24acf8ffd63eb892c43385c18602f00 (diff)
Make machine word size a factor in max_softdeps. Keeps alpha from
panic'ing.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_softdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index 6ef1e79f8d8..599e9743743 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -888,7 +888,7 @@ softdep_initialize()
LIST_INIT(&mkdirlisthd);
LIST_INIT(&softdep_workitem_pending);
- max_softdeps = desiredvnodes * 8;
+ max_softdeps = desiredvnodes * (32 / sizeof(register_t));
pagedep_hashtbl = hashinit(desiredvnodes / 5, M_PAGEDEP,
&pagedep_hash);
sema_init(&pagedep_in_progress, "pagedep", PRIBIO, 0);