]> git.proxmox.com Git - mirror_spl.git/commit
Remove global memory variables
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 1 Oct 2014 22:34:41 +0000 (18:34 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 17 Oct 2014 22:11:51 +0000 (15:11 -0700)
commit8bbbe46f8680389888d6111f8d81429dcc5defac
tree5c4aaeafb2ef237e884021082fac39bb373f2dcf
parente1310afae3bdb17628b40c35561f2daedfaf4062
Remove global memory variables

Platforms such as Illumos and FreeBSD have historically provided
global variables which summerize the memory state of a system.
Linux on the otherhand doesn't expose any of this information
to kernel modules and uses entirely different mechanisms for
memory management.

In order to simplify the original ZFS port to Linux these global
variables were emulated by the SPL for the benefit of ZFS.  As ZoL
has matured over the years it has moved steadily away from these
interfaces and now no longer depends on them at all.

Therefore, this patch completely removes the global variables
availrmem, minfree, desfree, lotsfree, needfree, swapfs_minfree,
and swapfs_reserve.  This greatly simplifies the memory management
code and eliminates a common area of confusion.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
config/spl-build.m4
include/linux/mm_compat.h
include/sys/vmsystm.h
module/spl/spl-kmem.c
module/spl/spl-proc.c
module/splat/splat-kmem.c