summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-09-10 22:14:40 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-09-10 22:14:40 +0000
commit6c7f6bf3b78d5a195943ef8a4b6d7cab606fc6f3 (patch)
treedeed5ef5b1c06dad5ed8b0518798300686dffa18 /sys/kern/vfs_bio.c
parentbf20a0862f24d153803e8350119ed7c1e00fa548 (diff)
use clrnd(round_page(size)) instead of roundup(size, CLBYTES).
They do the same thing, but the former is noticeably faster on sparc
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 1202f8db8de..465258ae403 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_bio.c,v 1.23 1999/07/15 14:07:41 art Exp $ */
+/* $OpenBSD: vfs_bio.c,v 1.24 1999/09/10 22:14:39 art Exp $ */
/* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */
/*-
@@ -636,7 +636,7 @@ allocbuf(bp, size)
vsize_t desired_size;
int s;
- desired_size = roundup(size, CLBYTES);
+ desired_size = clrnd(round_page(size));
if (desired_size > MAXBSIZE)
panic("allocbuf: buffer larger than MAXBSIZE requested");