diff options
author | avg <avg@FreeBSD.org> | 2010-09-17 07:17:38 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2010-09-17 07:17:38 +0000 |
commit | adea260b59bcdeabf2073f824c2090b4079f9463 (patch) | |
tree | 777652987656db2464ff34d1680ccedd314fe964 /sys/cddl/contrib | |
parent | c94255f128c822492f902f30a35a1a2fa9df68d7 (diff) | |
download | FreeBSD-src-adea260b59bcdeabf2073f824c2090b4079f9463.zip FreeBSD-src-adea260b59bcdeabf2073f824c2090b4079f9463.tar.gz |
zfs arc_reclaim_needed: remove redundant checks for arc_c_max and arc_c_max
Those checks are not present in upstream code and they are enforced in
actual calculations of delta by which ARC size can be grown or should be
reduced.
MFC after: 3 weeks
Diffstat (limited to 'sys/cddl/contrib')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c index d2309b2..ce07a5c 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c @@ -2155,10 +2155,6 @@ arc_reclaim_needed(void) #ifdef _KERNEL if (needfree) return (1); - if (arc_size > arc_c_max) - return (1); - if (arc_size <= arc_c_min) - return (0); /* * Cooperate with pagedaemon when it's time for it to scan |