From c3ec929baf0797a48935e9035fc11d44e0dd535e Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 6 Feb 2009 10:09:20 -0800 Subject: [PATCH] Ensure vmem_size() calculations are only used on __i386 or we will missize the arch cache on 64bit machines with the SPL. This change should probably be there in the Solaris version as well. --- module/zfs/arc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/arc.c b/module/zfs/arc.c index e9c0730aee..5e4759ae15 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -3347,7 +3347,7 @@ arc_init(void) /* Start out with 1/8 of all memory */ arc_c = physmem * PAGESIZE / 8; -#ifdef _KERNEL +#if defined(_KERNEL) && defined(__i386) /* * On architectures where the physical memory can be larger * than the addressable space (intel in 32-bit mode), we may