From be5db977eaffd11ae52ddcbb0b64b53ec000082a Mon Sep 17 00:00:00 2001 From: "david.chen" Date: Mon, 9 Dec 2013 15:55:01 +0800 Subject: [PATCH] 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 Signed-off-by: Brian Behlendorf Closes #1941 --- module/zfs/arc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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