summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-08-30 04:04:37 +0000
committerpeter <peter@FreeBSD.org>2002-08-30 04:04:37 +0000
commitc3bdd669c3f39a9ac1166f5ca537aca7b8beff2b (patch)
tree1efd2347dcbfb7b9894853dfbf52875f12fa5e04 /sys/kern/vfs_bio.c
parentf058ad603616156ddb87113551b184875a1640e2 (diff)
downloadFreeBSD-src-c3bdd669c3f39a9ac1166f5ca537aca7b8beff2b.zip
FreeBSD-src-c3bdd669c3f39a9ac1166f5ca537aca7b8beff2b.tar.gz
Change hw.physmem and hw.usermem to unsigned long like they used to be
in the original hardwired sysctl implementation. The buf size calculator still overflows an integer on machines with large KVA (eg: ia64) where the number of pages does not fit into an int. Use 'long' there. Change Maxmem and physmem and related variables to 'long', mostly for completeness. Machines are not likely to overflow 'int' pages in the near term, but then again, 640K ought to be enough for anybody. This comes for free on 32 bit machines, so why not?
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 7a7317a..d5e5898 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -410,7 +410,7 @@ bd_speedup(void)
* being reserved at this time.
*/
caddr_t
-kern_vfs_bio_buffer_alloc(caddr_t v, int physmem_est)
+kern_vfs_bio_buffer_alloc(caddr_t v, long physmem_est)
{
/*
* physmem_est is in pages. Convert it to kilobytes (assumes
OpenPOWER on IntegriCloud