Author: peter
Date: Sun Aug 31 09:05:02 2014
New Revision: 270871
URL: http://svnweb.freebsd.org/changeset/base/270871

Log:
  Move the restored #ifdef i386 test back inside the #ifdef _KERNEL block
  where it originally was.

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c   Sun Aug 31 
06:46:21 2014        (r270870)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c   Sun Aug 31 
09:05:02 2014        (r270871)
@@ -2560,9 +2560,7 @@ arc_reclaim_needed(void)
            (btop(vmem_size(heap_arena, VMEM_FREE | VMEM_ALLOC)) >> 2))
                return (1);
 #endif
-#endif /* sun */
-
-#else
+#else  /* sun */
 #ifdef __i386__
        /* i386 has KVA limits that the raw page counts above don't consider */
        if (kmem_used() > (kmem_size() * 3) / 4) {
@@ -2571,6 +2569,9 @@ arc_reclaim_needed(void)
                return (1);
        }
 #endif
+#endif /* sun */
+
+#else
        if (spa_get_random(100) == 0)
                return (1);
 #endif
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to