]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - mm/zswap.c
mm/vmstat.c: fix /proc/vmstat format for CONFIG_DEBUG_TLBFLUSH=y CONFIG_SMP=n
[thirdparty/linux.git] / mm / zswap.c
index cd91fd9d96b814d145e378b573dd289fb501e64e..a4e4d36ec085853740b0fc07e2412333990a9a81 100644 (file)
@@ -219,8 +219,8 @@ static const struct zpool_ops zswap_zpool_ops = {
 
 static bool zswap_is_full(void)
 {
-       return totalram_pages * zswap_max_pool_percent / 100 <
-               DIV_ROUND_UP(zswap_pool_total_size, PAGE_SIZE);
+       return totalram_pages() * zswap_max_pool_percent / 100 <
+                       DIV_ROUND_UP(zswap_pool_total_size, PAGE_SIZE);
 }
 
 static void zswap_update_total_size(void)