Whamcloud - gitweb
LU-8560 libcfs: handle PAGE_CACHE_* removal in newer kernels
[fs/lustre-release.git] / lnet / klnds / socklnd / socklnd_lib.c
index e26db71..db244c8 100644 (file)
@@ -287,7 +287,7 @@ ksocknal_lib_kiov_vmap(lnet_kiov_t *kiov, int niov,
         for (nob = i = 0; i < niov; i++) {
                 if ((kiov[i].kiov_offset != 0 && i > 0) ||
                    (kiov[i].kiov_offset + kiov[i].kiov_len !=
-                    PAGE_CACHE_SIZE && i < niov - 1))
+                    PAGE_SIZE && i < niov - 1))
                         return NULL;
 
                 pages[i] = kiov[i].kiov_page;