aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavid.chen <[email protected]>2013-12-09 15:55:01 +0800
committerBrian Behlendorf <[email protected]>2013-12-10 10:05:40 -0800
commitbe5db977eaffd11ae52ddcbb0b64b53ec000082a (patch)
treed3796b266d93a4a52f8915bf441315dd94e5a02f
parent383efa5743ecf05e11b859e2dcc0133ceab8b458 (diff)
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 <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #1941
-rw-r--r--module/zfs/arc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c
index 9cdb52011..d6b4e1f29 100644
--- a/module/zfs/arc.c
+++ b/module/zfs/arc.c
@@ -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