svn commit: r212781 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

Andriy Gapon avg at FreeBSD.org
Fri Sep 17 07:17:38 UTC 2010


Author: avg
Date: Fri Sep 17 07:17:38 2010
New Revision: 212781
URL: http://svn.freebsd.org/changeset/base/212781

Log:
  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

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c	Fri Sep 17 07:14:07 2010	(r212780)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c	Fri Sep 17 07:17:38 2010	(r212781)
@@ -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


More information about the svn-src-all mailing list