Deleted Added
full compact
arc.c (307265) arc.c (307297)
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

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

6057 arc_c_min = arc_c_max / 2;
6058#endif
6059
6060#ifdef _KERNEL
6061 /*
6062 * Allow the tunables to override our calculations if they are
6063 * reasonable.
6064 */
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

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

6057 arc_c_min = arc_c_max / 2;
6058#endif
6059
6060#ifdef _KERNEL
6061 /*
6062 * Allow the tunables to override our calculations if they are
6063 * reasonable.
6064 */
6065 if (zfs_arc_max > arc_abs_min && zfs_arc_max < kmem_size())
6065 if (zfs_arc_max > arc_abs_min && zfs_arc_max < kmem_size()) {
6066 arc_c_max = zfs_arc_max;
6066 arc_c_max = zfs_arc_max;
6067 arc_c_min = MIN(arc_c_min, arc_c_max);
6068 }
6067 if (zfs_arc_min > arc_abs_min && zfs_arc_min <= arc_c_max)
6068 arc_c_min = zfs_arc_min;
6069#endif
6070
6071 arc_c = arc_c_max;
6072 arc_p = (arc_c >> 1);
6073 arc_size = 0;
6074

--- 1349 unchanged lines hidden ---
6069 if (zfs_arc_min > arc_abs_min && zfs_arc_min <= arc_c_max)
6070 arc_c_min = zfs_arc_min;
6071#endif
6072
6073 arc_c = arc_c_max;
6074 arc_p = (arc_c >> 1);
6075 arc_size = 0;
6076

--- 1349 unchanged lines hidden ---