Browse Source

This change was not for all 4.4, but just a small subset that does not replicate on later version of the kernel.

Godzil 4 years ago
parent
commit
ac6def392c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      kfusd/kfusd.c

+ 2 - 1
kfusd/kfusd.c

@@ -149,7 +149,8 @@
 #define GET_USER_PAGES(t,m,s,n,w,f,p,v) get_user_pages_remote(t,m,s,n,(w?FOLL_WRITE:0)|(f?FOLL_FORCE:0),p,v, NULL)
 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
 #define GET_USER_PAGES(t,m,s,n,w,f,p,v) get_user_pages_remote(t,m,s,n,w,f,p,v)
-#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 168)
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 168) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0)
+/* WTH? a small subset of 4.4 have changes that does not exist until 4.9 with a new function name */
 #define GET_USER_PAGES(t,m,s,n,w,f,p,v) get_user_pages(t,m,s,n,(w?FOLL_WRITE:0)|(f?FOLL_FORCE:0),p,v)
 #else
 #define GET_USER_PAGES(t, m, s, n, w, f, p, v) get_user_pages(t,m,s,n,w,f,p,v)