Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Aug 2012 14:11:42 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239065 - in head/sys: arm/arm dev/agp dev/md fs/nfsclient fs/nwfs fs/smbfs fs/tmpfs ia64/ia64 kern net nfsclient ofed/include/linux ufs/ffs vm
Message-ID:  <201208051411.q75EBg3c091320@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Aug  5 14:11:42 2012
New Revision: 239065
URL: http://svn.freebsd.org/changeset/base/239065

Log:
  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

Modified:
  head/sys/arm/arm/pmap.c
  head/sys/dev/agp/agp.c
  head/sys/dev/agp/agp_i810.c
  head/sys/dev/md/md.c
  head/sys/fs/nfsclient/nfs_clbio.c
  head/sys/fs/nwfs/nwfs_io.c
  head/sys/fs/smbfs/smbfs_io.c
  head/sys/fs/tmpfs/tmpfs_subr.c
  head/sys/fs/tmpfs/tmpfs_vnops.c
  head/sys/ia64/ia64/pmap.c
  head/sys/kern/kern_proc.c
  head/sys/kern/subr_uio.c
  head/sys/kern/uipc_syscalls.c
  head/sys/net/bpf_zerocopy.c
  head/sys/nfsclient/nfs_bio.c
  head/sys/ofed/include/linux/gfp.h
  head/sys/ufs/ffs/ffs_vnops.c
  head/sys/vm/device_pager.c
  head/sys/vm/sg_pager.c
  head/sys/vm/vm_page.h
  head/sys/vm/vnode_pager.c

Modified: head/sys/arm/arm/pmap.c
==============================================================================
--- head/sys/arm/arm/pmap.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/arm/arm/pmap.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -154,6 +154,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/sched.h>
 
 #include <vm/vm.h>
+#include <vm/vm_param.h>
 #include <vm/uma.h>
 #include <vm/pmap.h>
 #include <vm/vm_kern.h>
@@ -165,7 +166,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/lock.h>
 #include <sys/mutex.h>
 #include <machine/md_var.h>
-#include <machine/vmparam.h>
 #include <machine/cpu.h>
 #include <machine/cpufunc.h>
 #include <machine/pcb.h>

Modified: head/sys/dev/agp/agp.c
==============================================================================
--- head/sys/dev/agp/agp.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/dev/agp/agp.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -50,6 +50,7 @@ __FBSDID("$FreeBSD$");
 #include <dev/pci/pcireg.h>
 
 #include <vm/vm.h>
+#include <vm/vm_param.h>
 #include <vm/vm_object.h>
 #include <vm/vm_page.h>
 #include <vm/vm_pageout.h>

Modified: head/sys/dev/agp/agp_i810.c
==============================================================================
--- head/sys/dev/agp/agp_i810.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/dev/agp/agp_i810.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -67,6 +67,7 @@ __FBSDID("$FreeBSD$");
 #include <dev/pci/pci_private.h>
 
 #include <vm/vm.h>
+#include <vm/vm_param.h>
 #include <vm/vm_object.h>
 #include <vm/vm_page.h>
 #include <vm/vm_pageout.h>

Modified: head/sys/dev/md/md.c
==============================================================================
--- head/sys/dev/md/md.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/dev/md/md.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -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. */

Modified: head/sys/fs/nfsclient/nfs_clbio.c
==============================================================================
--- head/sys/fs/nfsclient/nfs_clbio.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/fs/nfsclient/nfs_clbio.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -47,6 +47,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/vnode.h>
 
 #include <vm/vm.h>
+#include <vm/vm_param.h>
 #include <vm/vm_extern.h>
 #include <vm/vm_page.h>
 #include <vm/vm_object.h>

Modified: head/sys/fs/nwfs/nwfs_io.c
==============================================================================
--- head/sys/fs/nwfs/nwfs_io.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/fs/nwfs/nwfs_io.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -38,6 +38,7 @@
 #include <sys/sysctl.h>
 
 #include <vm/vm.h>
+#include <vm/vm_param.h>
 #include <vm/vm_page.h>
 #include <vm/vm_extern.h>
 #include <vm/vm_object.h>

Modified: head/sys/fs/smbfs/smbfs_io.c
==============================================================================
--- head/sys/fs/smbfs/smbfs_io.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/fs/smbfs/smbfs_io.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -41,6 +41,7 @@
 #include <sys/vmmeter.h>
 
 #include <vm/vm.h>
+#include <vm/vm_param.h>
 #include <vm/vm_page.h>
 #include <vm/vm_extern.h>
 #include <vm/vm_object.h>

Modified: head/sys/fs/tmpfs/tmpfs_subr.c
==============================================================================
--- head/sys/fs/tmpfs/tmpfs_subr.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/fs/tmpfs/tmpfs_subr.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -47,6 +47,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/vmmeter.h>
 
 #include <vm/vm.h>
+#include <vm/vm_param.h>
 #include <vm/vm_object.h>
 #include <vm/vm_page.h>
 #include <vm/vm_pageout.h>

Modified: head/sys/fs/tmpfs/tmpfs_vnops.c
==============================================================================
--- head/sys/fs/tmpfs/tmpfs_vnops.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/fs/tmpfs/tmpfs_vnops.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/vnode.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>

Modified: head/sys/ia64/ia64/pmap.c
==============================================================================
--- head/sys/ia64/ia64/pmap.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/ia64/ia64/pmap.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -59,6 +59,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/systm.h>
 
 #include <vm/vm.h>
+#include <vm/vm_param.h>
 #include <vm/vm_page.h>
 #include <vm/vm_map.h>
 #include <vm/vm_object.h>

Modified: head/sys/kern/kern_proc.c
==============================================================================
--- head/sys/kern/kern_proc.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/kern/kern_proc.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -77,6 +77,7 @@ __FBSDID("$FreeBSD$");
 #endif
 
 #include <vm/vm.h>
+#include <vm/vm_param.h>
 #include <vm/vm_extern.h>
 #include <vm/pmap.h>
 #include <vm/vm_map.h>

Modified: head/sys/kern/subr_uio.c
==============================================================================
--- head/sys/kern/subr_uio.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/kern/subr_uio.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -53,11 +53,11 @@ __FBSDID("$FreeBSD$");
 #include <sys/vnode.h>
 
 #include <vm/vm.h>
+#include <vm/vm_param.h>
 #include <vm/vm_extern.h>
 #include <vm/vm_page.h>
 #include <vm/vm_map.h>
 #ifdef ZERO_COPY_SOCKETS
-#include <vm/vm_param.h>
 #include <vm/vm_object.h>
 #endif
 

Modified: head/sys/kern/uipc_syscalls.c
==============================================================================
--- head/sys/kern/uipc_syscalls.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/kern/uipc_syscalls.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -82,6 +82,7 @@ __FBSDID("$FreeBSD$");
 #include <security/mac/mac_framework.h>
 
 #include <vm/vm.h>
+#include <vm/vm_param.h>
 #include <vm/vm_object.h>
 #include <vm/vm_page.h>
 #include <vm/vm_pageout.h>

Modified: head/sys/net/bpf_zerocopy.c
==============================================================================
--- head/sys/net/bpf_zerocopy.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/net/bpf_zerocopy.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -50,6 +50,7 @@ __FBSDID("$FreeBSD$");
 #include <net/bpfdesc.h>
 
 #include <vm/vm.h>
+#include <vm/vm_param.h>
 #include <vm/pmap.h>
 #include <vm/vm_extern.h>
 #include <vm/vm_map.h>

Modified: head/sys/nfsclient/nfs_bio.c
==============================================================================
--- head/sys/nfsclient/nfs_bio.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/nfsclient/nfs_bio.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -49,6 +49,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/vnode.h>
 
 #include <vm/vm.h>
+#include <vm/vm_param.h>
 #include <vm/vm_extern.h>
 #include <vm/vm_page.h>
 #include <vm/vm_object.h>

Modified: head/sys/ofed/include/linux/gfp.h
==============================================================================
--- head/sys/ofed/include/linux/gfp.h	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/ofed/include/linux/gfp.h	Sun Aug  5 14:11:42 2012	(r239065)
@@ -34,6 +34,7 @@
 
 #include <linux/page.h>
 
+#include <vm/vm_param.h>
 #include <vm/vm_object.h>
 #include <vm/vm_extern.h>
 #include <vm/vm_kern.h>

Modified: head/sys/ufs/ffs/ffs_vnops.c
==============================================================================
--- head/sys/ufs/ffs/ffs_vnops.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/ufs/ffs/ffs_vnops.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -80,6 +80,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/vnode.h>
 
 #include <vm/vm.h>
+#include <vm/vm_param.h>
 #include <vm/vm_extern.h>
 #include <vm/vm_object.h>
 #include <vm/vm_page.h>

Modified: head/sys/vm/device_pager.c
==============================================================================
--- head/sys/vm/device_pager.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/vm/device_pager.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -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>

Modified: head/sys/vm/sg_pager.c
==============================================================================
--- head/sys/vm/sg_pager.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/vm/sg_pager.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -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>

Modified: head/sys/vm/vm_page.h
==============================================================================
--- head/sys/vm/vm_page.h	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/vm/vm_page.h	Sun Aug  5 14:11:42 2012	(r239065)
@@ -284,8 +284,6 @@ extern struct vpglocks pa_lock[];
 
 #include <sys/systm.h>
 
-#include <vm/vm_param.h>
-
 #include <machine/atomic.h>
 
 /*

Modified: head/sys/vm/vnode_pager.c
==============================================================================
--- head/sys/vm/vnode_pager.c	Sun Aug  5 14:11:07 2012	(r239064)
+++ head/sys/vm/vnode_pager.c	Sun Aug  5 14:11:42 2012	(r239065)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208051411.q75EBg3c091320>