svn commit: r272495 - vendor-sys/illumos/dist/uts/common/fs/zfs

Xin LI delphij at FreeBSD.org
Sat Oct 4 07:32:20 UTC 2014


Author: delphij
Date: Sat Oct  4 07:32:19 2014
New Revision: 272495
URL: https://svnweb.freebsd.org/changeset/base/272495

Log:
  5163 arc should reap range_seg_cache
  Reviewed by: Christopher Siden <christopher.siden at delphix.com>
  Reviewed by: Matthew Ahrens <mahrens at delphix.com>
  Reviewed by: Richard Elling <richard.elling at gmail.com>
  Reviewed by: Saso Kiselkov <skiselkov.ml at gmail.com>
  Approved by: Dan McDonald <danmcd at omniti.com>
  Author:	George Wilson <george.wilson at delphix.com>
  
  illumos/illumos at 83803b51e1fa57fbf4e86ca5aa58eab6c5822dae

Modified:
  vendor-sys/illumos/dist/uts/common/fs/zfs/arc.c
  vendor-sys/illumos/dist/uts/common/fs/zfs/range_tree.c

Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/arc.c
==============================================================================
--- vendor-sys/illumos/dist/uts/common/fs/zfs/arc.c	Sat Oct  4 07:26:42 2014	(r272494)
+++ vendor-sys/illumos/dist/uts/common/fs/zfs/arc.c	Sat Oct  4 07:32:19 2014	(r272495)
@@ -2303,6 +2303,7 @@ arc_kmem_reap_now(arc_reclaim_strategy_t
 	kmem_cache_t		*prev_data_cache = NULL;
 	extern kmem_cache_t	*zio_buf_cache[];
 	extern kmem_cache_t	*zio_data_buf_cache[];
+	extern kmem_cache_t	*range_seg_cache;
 
 #ifdef _KERNEL
 	if (arc_meta_used >= arc_meta_limit) {
@@ -2339,6 +2340,7 @@ arc_kmem_reap_now(arc_reclaim_strategy_t
 	}
 	kmem_cache_reap_now(buf_cache);
 	kmem_cache_reap_now(hdr_cache);
+	kmem_cache_reap_now(range_seg_cache);
 
 	/*
 	 * Ask the vmem areana to reclaim unused memory from its

Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/range_tree.c
==============================================================================
--- vendor-sys/illumos/dist/uts/common/fs/zfs/range_tree.c	Sat Oct  4 07:26:42 2014	(r272494)
+++ vendor-sys/illumos/dist/uts/common/fs/zfs/range_tree.c	Sat Oct  4 07:32:19 2014	(r272495)
@@ -33,7 +33,7 @@
 #include <sys/zio.h>
 #include <sys/range_tree.h>
 
-static kmem_cache_t *range_seg_cache;
+kmem_cache_t *range_seg_cache;
 
 void
 range_tree_init(void)


More information about the svn-src-all mailing list