summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-08-05 14:11:42 +0000
committerkib <kib@FreeBSD.org>2012-08-05 14:11:42 +0000
commitcac2fe116fb1431e5d9f22d2c536ee13c925eaa8 (patch)
treee43451f867df87793408c455ea0ee0459bfc180e /sys/vm
parent42fcb864d46d43b02c8ce41669bc2240b44330fe (diff)
downloadFreeBSD-src-cac2fe116fb1431e5d9f22d2c536ee13c925eaa8.zip
FreeBSD-src-cac2fe116fb1431e5d9f22d2c536ee13c925eaa8.tar.gz
After the PHYS_TO_VM_PAGE() function was de-inlined, the main reason
to pull vm_param.h was removed. Other big dependency of vm_page.h on vm_param.h are PA_LOCK* definitions, which are only needed for in-kernel code, because modules use KBI-safe functions to lock the pages. Stop including vm_param.h into vm_page.h. Include vm_param.h explicitely for the kernel code which needs it. Suggested and reviewed by: alc MFC after: 2 weeks
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/device_pager.c1
-rw-r--r--sys/vm/sg_pager.c1
-rw-r--r--sys/vm/vm_page.h2
-rw-r--r--sys/vm/vnode_pager.c1
4 files changed, 3 insertions, 2 deletions
diff --git a/sys/vm/device_pager.c b/sys/vm/device_pager.c
index ad3e914..546c9bd 100644
--- a/sys/vm/device_pager.c
+++ b/sys/vm/device_pager.c
@@ -47,6 +47,7 @@ __FBSDID("$FreeBSD$");
#include <sys/sx.h>
#include <vm/vm.h>
+#include <vm/vm_param.h>
#include <vm/vm_object.h>
#include <vm/vm_page.h>
#include <vm/vm_pager.h>
diff --git a/sys/vm/sg_pager.c b/sys/vm/sg_pager.c
index 3bee303..c8b14bd 100644
--- a/sys/vm/sg_pager.c
+++ b/sys/vm/sg_pager.c
@@ -38,6 +38,7 @@ __FBSDID("$FreeBSD$");
#include <sys/mutex.h>
#include <sys/sglist.h>
#include <vm/vm.h>
+#include <vm/vm_param.h>
#include <vm/vm_object.h>
#include <vm/vm_page.h>
#include <vm/vm_pager.h>
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index f9d1e97..14c9436 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -284,8 +284,6 @@ extern struct vpglocks pa_lock[];
#include <sys/systm.h>
-#include <vm/vm_param.h>
-
#include <machine/atomic.h>
/*
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c
index b51a500..da88b08 100644
--- a/sys/vm/vnode_pager.c
+++ b/sys/vm/vnode_pager.c
@@ -68,6 +68,7 @@ __FBSDID("$FreeBSD$");
#include <machine/atomic.h>
#include <vm/vm.h>
+#include <vm/vm_param.h>
#include <vm/vm_object.h>
#include <vm/vm_page.h>
#include <vm/vm_pager.h>
OpenPOWER on IntegriCloud