]> granicus.if.org Git - zfs/commitdiff
Remove redundant assignments to arc_c
authorTim Chase <tim@onlight.com>
Fri, 9 Sep 2016 16:03:03 +0000 (11:03 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 12 Sep 2016 19:40:30 +0000 (12:40 -0700)
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 <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@onlight.com>
Closes #5081

module/zfs/arc.c

index 82b16ff52e6ae5629b2625e77ca31037fd7cb302..eee4973b2c9683f7c7ed4e6d0ca8b793ee6820ac 100755 (executable)
@@ -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