5163 arc should reap range_seg_cache

Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Richard Elling <richard.elling@gmail.com>
Reviewed by: Saso Kiselkov <skiselkov.ml@gmail.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author:	George Wilson <george.wilson@delphix.com>

illumos/illumos@83803b51e1
This commit is contained in:
Xin LI 2014-10-04 07:32:19 +00:00
parent a665ce3ac2
commit 3c5da9147d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/vendor-sys/illumos/dist/; revision=272495
2 changed files with 3 additions and 1 deletions

View File

@ -2303,6 +2303,7 @@ arc_kmem_reap_now(arc_reclaim_strategy_t strat)
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 strat)
}
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

View File

@ -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)