Whamcloud - gitweb
fix build on rhel5/ia64.
[fs/lustre-release.git] / lustre / ldlm / ldlm_request.c
index 56c48ff..3a02565 100644 (file)
@@ -490,7 +490,7 @@ static inline int ldlm_req_handles_avail(int req_size, int off)
 {
         int avail;
 
-        avail = min_t(int, LDLM_MAXREQSIZE, PAGE_SIZE - 512) - req_size;
+        avail = min_t(int, LDLM_MAXREQSIZE, CFS_PAGE_SIZE - 512) - req_size;
         avail /= sizeof(struct lustre_handle);
         avail += LDLM_LOCKREQ_HANDLES - off;