Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Use round_page() instead of roundup(..., NBPG).
details: https://anonhg.NetBSD.org/src/rev/ea216808c0f7
branches: trunk
changeset: 499234:ea216808c0f7
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Nov 14 22:23:06 2000 +0000
description:
Use round_page() instead of roundup(..., NBPG).
diffstat:
sys/kern/vfs_cluster.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 56a70842ecb7 -r ea216808c0f7 sys/kern/vfs_cluster.c
--- a/sys/kern/vfs_cluster.c Tue Nov 14 22:16:38 2000 +0000
+++ b/sys/kern/vfs_cluster.c Tue Nov 14 22:23:06 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_cluster.c,v 1.24 2000/06/27 17:41:48 mrg Exp $ */
+/* $NetBSD: vfs_cluster.c,v 1.25 2000/11/14 22:23:06 thorpej Exp $ */
/*-
* Copyright (c) 1993
@@ -45,6 +45,8 @@
#include <sys/systm.h>
#include <sys/resourcevar.h>
+#include <uvm/uvm_extern.h>
+
int doreallocblks = 0;
#ifdef DEBUG
@@ -328,7 +330,7 @@
* is no way of doing the necessary page moving, so
* terminate early.
*/
- if (size != roundup(size, NBPG))
+ if (size != round_page(size))
return (bp);
inc = btodb(size);
Home |
Main Index |
Thread Index |
Old Index