diff --git a/module/zfs/arc.c b/module/zfs/arc.c index a7fb2429ec..b218a96e6b 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -4004,9 +4004,9 @@ arc_all_memory(void) { #ifdef _KERNEL #ifdef CONFIG_HIGHMEM - return (ptob(totalram_pages - totalhigh_pages)); + return (ptob(zfs_totalram_pages - totalhigh_pages)); #else - return (ptob(totalram_pages)); + return (ptob(zfs_totalram_pages)); #endif /* CONFIG_HIGHMEM */ #else return (ptob(physmem) / 2);