From 43924bfeaa3e027b26af826ce2b7d6ed3288550c Mon Sep 17 00:00:00 2001 From: Tim Chase Date: Fri, 9 Sep 2016 11:03:03 -0500 Subject: Remove redundant assignments to arc_c Several assignments to arc_c had no effect because it is ultimately initialized to arc_c_max. This aligns ZoL better with the upstream code which removed these assignments some time ago. Reviewed-by: Brian Behlendorf Signed-off-by: Tim Chase Closes #5081 --- module/zfs/arc.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'module') diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 82b16ff52..eee4973b2 100755 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -5464,17 +5464,7 @@ arc_init(void) /* Convert seconds to clock ticks */ arc_min_prefetch_lifespan = 1 * hz; - /* Start out with 1/8 of all memory */ - arc_c = allmem / 8; - #ifdef _KERNEL - /* - * On architectures where the physical memory can be larger - * than the addressable space (intel in 32-bit mode), we may - * need to limit the cache to 1/8 of VM size. - */ - arc_c = MIN(arc_c, vmem_size(heap_arena, VMEM_ALLOC | VMEM_FREE) / 8); - /* * Register a shrinker to support synchronous (direct) memory * reclaim from the arc. This is done to prevent kswapd from -- cgit v1.2.3