]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/netfilter/x_tables.c
mm: replace various uses of num_physpages by totalram_pages
[net-next-2.6.git] / net / netfilter / x_tables.c
index a6ac83a933483e719c338821ee9ef087fdd9e99b..f01955cce3147942545f89e618b6cf1be2b3aa28 100644 (file)
@@ -617,7 +617,7 @@ struct xt_table_info *xt_alloc_table_info(unsigned int size)
        int cpu;
 
        /* Pedantry: prevent them from hitting BUG() in vmalloc.c --RR */
-       if ((SMP_ALIGN(size) >> PAGE_SHIFT) + 2 > num_physpages)
+       if ((SMP_ALIGN(size) >> PAGE_SHIFT) + 2 > totalram_pages)
                return NULL;
 
        newinfo = kzalloc(XT_TABLE_INFO_SZ, GFP_KERNEL);