]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 5.0 compat: Use totalram_pages()
authorTony Hutter <hutter2@llnl.gov>
Thu, 10 Jan 2019 22:28:10 +0000 (14:28 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 28 Jan 2019 18:11:14 +0000 (10:11 -0800)
commit031cea17a3db1dae3b6968a8c71bcfb678a03235
treea60ac674f73053dc6f69000686687ff734d61753
parent77e50c3070a0009c4ed8b50dbb7cf0df48bdda90
Linux 5.0 compat: Use totalram_pages()

totalram_pages() was converted to an atomic variable in 5.0:

https://patchwork.kernel.org/patch/10652795/

Its value should now be read though the totalram_pages() helper
function.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #8263
config/kernel-totalram-pages-func.m4 [new file with mode: 0644]
config/kernel.m4
include/spl/sys/vmsystm.h
module/zfs/arc.c