Deleted Added
full compact
arc.c (315834) arc.c (317470)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 3964 unchanged lines hidden (view full) ---

3973 }
3974 }
3975
3976 /*
3977 * Above limits know nothing about real level of KVA fragmentation.
3978 * Start aggressive reclamation if too little sequential KVA left.
3979 */
3980 if (lowest > 0) {
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 3964 unchanged lines hidden (view full) ---

3973 }
3974 }
3975
3976 /*
3977 * Above limits know nothing about real level of KVA fragmentation.
3978 * Start aggressive reclamation if too little sequential KVA left.
3979 */
3980 if (lowest > 0) {
3981 n = (vmem_size(heap_arena, VMEM_MAXFREE) < zfs_max_recordsize) ?
3981 n = (vmem_size(heap_arena, VMEM_MAXFREE) < SPA_MAXBLOCKSIZE) ?
3982 -((int64_t)vmem_size(heap_arena, VMEM_ALLOC) >> 4) :
3983 INT64_MAX;
3984 if (n < lowest) {
3985 lowest = n;
3986 r = FMR_ZIO_FRAG;
3987 }
3988 }
3989

--- 3445 unchanged lines hidden ---
3982 -((int64_t)vmem_size(heap_arena, VMEM_ALLOC) >> 4) :
3983 INT64_MAX;
3984 if (n < lowest) {
3985 lowest = n;
3986 r = FMR_ZIO_FRAG;
3987 }
3988 }
3989

--- 3445 unchanged lines hidden ---