]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Remove MAX when initializing arc_c_max
authordavid.chen <tuxoko@gmail.com>
Mon, 9 Dec 2013 07:55:01 +0000 (15:55 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 10 Dec 2013 18:05:40 +0000 (10:05 -0800)
The MAX when initializing arc_c_max doesn't make any sense because
it hasn't been set anywhere before. Though, arc_c_max should be
implicitly set to zero when initializing arc_stats, so the MAX
doesn't make any difference.

The MAX was mistakenly left if place when the Illumos default
values were changed for Linux.

Signed-off-by: david.chen <tuxoko@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1941

module/zfs/arc.c

index 9cdb52011a6d688f1198a195455cfda627e9ff78..d6b4e1f29503b1d3e30f671cf41feb1641cce5fc 100644 (file)
@@ -4019,7 +4019,7 @@ arc_init(void)
        /* set min cache to 1/32 of all memory, or 64MB, whichever is more */
        arc_c_min = MAX(arc_c / 4, 64<<20);
        /* set max to 1/2 of all memory */
-       arc_c_max = MAX(arc_c * 4, arc_c_max);
+       arc_c_max = arc_c * 4;
 
        /*
         * Allow the tunables to override our calculations if they are