summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2008-11-06 18:13:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2008-11-06 18:13:32 +0000
commit69c6b6cb47708b51c4520b615b0bd49ac5883c99 (patch)
tree4356d89f8983083cfa7ea7e0884d30d02c762b10 /sys
parent48081d20ed69195ad3e0e8b7945356104cfaf850 (diff)
use PAGE_SIZE in FS_KERNMAXFILESIZE() use, note this is not the same as getpagesize() elsewhere. otto, please fix correctly after
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 20dea16eafd..d9a3a20b783 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.118 2008/11/02 08:53:06 otto Exp $ */
+/* $OpenBSD: ffs_vfsops.c,v 1.119 2008/11/06 18:13:31 deraadt Exp $ */
/* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */
/*
@@ -892,7 +892,7 @@ ffs_mountfs(struct vnode *devvp, struct mount *mp, struct proc *p)
* a little added paranoia never hurts.
*/
ump->um_savedmaxfilesize = fs->fs_maxfilesize; /* XXX */
- maxfilesize = FS_KERNMAXFILESIZE(fs);
+ maxfilesize = FS_KERNMAXFILESIZE(PAGE_SIZE, fs);
if (fs->fs_maxfilesize > maxfilesize) /* XXX */
fs->fs_maxfilesize = maxfilesize; /* XXX */
if (ronly == 0) {