]> git.pld-linux.org Git - packages/zfs.git/commitdiff
- totalhigh_pages is also a function in kernel 5.0
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 11 Mar 2019 22:39:52 +0000 (23:39 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 11 Mar 2019 22:39:52 +0000 (23:39 +0100)
kernel-5.0.patch

index 87a2e3683d0a07c8c03bba46e91796b9e455e17f..a11215c6dfa7045fce4f3d561540d77e980bc74a 100644 (file)
@@ -245,14 +245,16 @@ diff --git a/include/spl/sys/vmsystm.h b/include/spl/sys/vmsystm.h
 index 2b48fe0e369..6bdfc852ac0 100644
 --- a/include/spl/sys/vmsystm.h
 +++ b/include/spl/sys/vmsystm.h
-@@ -33,8 +33,14 @@
+@@ -33,8 +33,16 @@
  #include <sys/types.h>
  #include <asm/uaccess.h>
  
 +#ifdef HAVE_TOTALRAM_PAGES_FUNC
 +#define       zfs_totalram_pages      totalram_pages()
++#define       zfs_totalhigh_pages     totalhigh_pages()
 +#else
 +#define       zfs_totalram_pages      totalram_pages
++#define       zfs_totalhigh_pages     totalhigh_pages
 +#endif
 +
  #define       membar_producer()               smp_wmb()
@@ -270,7 +272,7 @@ index 7e09633345d..f5d94cbf90a 100644
  #ifdef _KERNEL
  #ifdef CONFIG_HIGHMEM
 -      return (ptob(totalram_pages - totalhigh_pages));
-+      return (ptob(zfs_totalram_pages - totalhigh_pages));
++      return (ptob(zfs_totalram_pages - zfs_totalhigh_pages));
  #else
 -      return (ptob(totalram_pages));
 +      return (ptob(zfs_totalram_pages));
This page took 0.149997 seconds and 4 git commands to generate.