]> git.proxmox.com Git - mirror_spl.git/commit
Update global_page_state() support for 2.6.29 kernels.
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 28 Jul 2009 22:06:42 +0000 (15:06 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 28 Jul 2009 22:06:42 +0000 (15:06 -0700)
commit6ae7fef5b94275e50cc1dcd48c4ecf3b70d7f9d9
tree6bee188c48e16981416bab356d02bc02817edae0
parent6b09f739398a644384bfbab87792e4681707aef1
Update global_page_state() support for 2.6.29 kernels.
Basically everything we need to monitor the global memory state of
the system is now cleanly available via global_page_state().  The
problem is that this interface is still fairly recent, and there
has been one change in the page state enum which we need to handle.
These changes basically boil down to the following:
- If global_page_state() is available we should use it.  Several
  autoconf checks have been added to detect the correct enum names.
- If global_page_state() is not available check to see if
  get_zone_counts() symbol is available and use that.
- If the get_zone_counts() symbol is not exported we have no choice
  be to dynamically aquire it at load time.  This is an absolute
  last resort for old kernel which we don't want to patch to
  cleanly export the symbol.
config/spl-build.m4
configure
include/sys/vmsystm.h
module/spl/spl-kmem.c
module/splat/splat-kmem.c
spl_config.h.in