summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-03-21 07:28:15 +0000
committerkib <kib@FreeBSD.org>2013-03-21 07:28:15 +0000
commit9382f70781f175347620eab8b665f052267b44d8 (patch)
tree9bc7b3e0c6cc84c20d55326658b4ae8b7a95602e /sys/kern
parent20a66ac4033ea025111b5bfaa05b8390f33f9e33 (diff)
downloadFreeBSD-src-9382f70781f175347620eab8b665f052267b44d8.zip
FreeBSD-src-9382f70781f175347620eab8b665f052267b44d8.tar.gz
Only size and create the bio_transient_map when unmapped buffers are
enabled. Now, disabling the unmapped buffers should result in the kernel memory map identical to pre-r248550. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/kern')
-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 0a2b89e..30f935c 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -586,7 +586,7 @@ kern_vfs_bio_buffer_alloc(caddr_t v, long physmem_est)
* allows to not trim the buffer KVA for the architectures
* with ample KVA space.
*/
- if (bio_transient_maxcnt == 0) {
+ if (bio_transient_maxcnt == 0 && unmapped_buf_allowed) {
maxbuf_sz = maxbcache != 0 ? maxbcache : maxbuf * BKVASIZE;
buf_sz = (long)nbuf * BKVASIZE;
if (buf_sz < maxbuf_sz / 10 * 9) {
OpenPOWER on IntegriCloud