Whamcloud - gitweb
LU-12355 llite: totalram_pages changed to atomic_long_t
[fs/lustre-release.git] / libcfs / libcfs / linux / linux-tracefile.c
index bb776a7..3bdfab4 100644 (file)
@@ -305,7 +305,7 @@ void cfs_print_to_console(struct ptldebug_header *hdr, int mask,
 
 int cfs_trace_max_debug_mb(void)
 {
-       int  total_mb = (totalram_pages >> (20 - PAGE_SHIFT));
+       int  total_mb = (cfs_totalram_pages() >> (20 - PAGE_SHIFT));
 
        return MAX(512, (total_mb * 80)/100);
 }