diff options
author | Tim Chase <[email protected]> | 2016-09-09 11:03:03 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-09-12 12:40:30 -0700 |
commit | 43924bfeaa3e027b26af826ce2b7d6ed3288550c (patch) | |
tree | 80effca50ba4633d9fcb3fc6b978f230fa2078e2 /module/zfs/arc.c | |
parent | 67d60824946ade6b1b71a98dbfbfca5949aee425 (diff) |
Remove redundant assignments to arc_c
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 <[email protected]>
Signed-off-by: Tim Chase <[email protected]>
Closes #5081
Diffstat (limited to 'module/zfs/arc.c')
-rwxr-xr-x | module/zfs/arc.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 82b16ff52..eee4973b2 100755 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -5464,18 +5464,8 @@ 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 * swapping out pages when it is preferable to shrink the arc. |