*/
#define membar_producer() smp_wmb()
-#define physmem num_physpages
+#define physmem totalram_pages
#define freemem nr_free_pages()
#define availrmem spl_kmem_availrmem()
#ifndef HAVE_GET_VMALLOC_INFO
#ifdef CONFIG_MMU
+#ifndef HAVE_VMALLOC_INFO
struct vmalloc_info {
unsigned long used;
unsigned long largest_chunk;
};
+#endif
typedef void (*get_vmalloc_info_t)(struct vmalloc_info *);
extern get_vmalloc_info_t get_vmalloc_info_fn;