tools/bpf: selftests: add map lookup to test_map_in_map bpf prog
[linux-2.6-microblaze.git] / mm / vmalloc.c
index 97d4b25..871e41c 100644 (file)
@@ -1634,7 +1634,7 @@ void *vmap(struct page **pages, unsigned int count,
 
        might_sleep();
 
-       if (count > totalram_pages)
+       if (count > totalram_pages())
                return NULL;
 
        size = (unsigned long)count << PAGE_SHIFT;
@@ -1739,7 +1739,7 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align,
        unsigned long real_size = size;
 
        size = PAGE_ALIGN(size);
-       if (!size || (size >> PAGE_SHIFT) > totalram_pages)
+       if (!size || (size >> PAGE_SHIFT) > totalram_pages())
                goto fail;
 
        area = __get_vm_area_node(size, align, VM_ALLOC | VM_UNINITIALIZED |