Remove MAX when initializing arc_c_max

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
This commit is contained in:
david.chen 2013-12-09 15:55:01 +08:00 committed by Brian Behlendorf
parent 383efa5743
commit be5db977ea

View 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