Whamcloud - gitweb
LU-8560 libcfs: handle PAGE_CACHE_* removal in newer kernels
[fs/lustre-release.git] / libcfs / libcfs / debug.c
index 673dc9b..51cba40 100644 (file)
@@ -302,7 +302,7 @@ int libcfs_debug_init(unsigned long bufsize)
                max = TCD_MAX_PAGES;
        } else {
                max = (max / num_possible_cpus());
-               max = (max << (20 - PAGE_CACHE_SHIFT));
+               max = (max << (20 - PAGE_SHIFT));
        }
        rc = cfs_tracefile_init(max);