]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 5.8 compat: __vmalloc()
authorMichael Niewöhner <c0d3z3r0@users.noreply.github.com>
Mon, 8 Jun 2020 23:32:02 +0000 (01:32 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Jun 2020 23:32:02 +0000 (16:32 -0700)
commit080102a1b686a36adaec3a11a9778783462429e8
tree5a814ba5c2bc9477d5efaed519198144a2ab8da1
parent529246df96e2838b18592ed18628d2a122828be8
Linux 5.8 compat: __vmalloc()

The `pgprot` argument has been removed from `__vmalloc` in Linux 5.8,
being `PAGE_KERNEL` always now [1].

Detect this during configure and define a wrapper for older kernels.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/mm/vmalloc.c?h=next-20200605&id=88dca4ca5a93d2c09e5bbc6a62fbfc3af83c4fca

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Sebastian Gottschall <s.gottschall@dd-wrt.com>
Co-authored-by: Michael Niewöhner <foss@mniewoehner.de>
Signed-off-by: Sebastian Gottschall <s.gottschall@dd-wrt.com>
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Closes #10422
config/kernel-kmem.m4
config/kernel.m4
include/os/linux/spl/sys/kmem.h
module/os/linux/spl/spl-kmem-cache.c
module/os/linux/spl/spl-kmem.c