diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2012-08-05 14:11:42 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2012-08-05 14:11:42 +0000 |
commit | 1c771f9222a08a2a4a376209430038d9561f2470 (patch) | |
tree | e43451f867df87793408c455ea0ee0459bfc180e /sys/dev/md/md.c | |
parent | d68fc999de5fcf708e2c20f2d9d7ccb042f6d338 (diff) | |
download | src-1c771f9222a08a2a4a376209430038d9561f2470.tar.gz src-1c771f9222a08a2a4a376209430038d9561f2470.zip |
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
Notes
Notes:
svn path=/head/; revision=239065
Diffstat (limited to 'sys/dev/md/md.c')
-rw-r--r-- | sys/dev/md/md.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index a02f42c8112f..07c3ed641ac4 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -84,14 +84,13 @@ #include <geom/geom.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> #include <vm/swap_pager.h> #include <vm/uma.h> -#include <machine/vmparam.h> - #define MD_MODVER 1 #define MD_SHUTDOWN 0x10000 /* Tell worker thread to terminate. */ |