summaryrefslogtreecommitdiffstats
path: root/mm/percpu.c
diff options
context:
space:
mode:
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>2017-07-16 04:23:08 +0200
committerTejun Heo <tj@kernel.org>2017-07-17 16:46:58 +0200
commit6b9b6f39946c4a7a98fac31ee91bac43cd2b73a9 (patch)
treef6405a03492b80c36dec85a784430106d85ce82a /mm/percpu.c
parentpercpu: change the format for percpu_stats output (diff)
downloadlinux-6b9b6f39946c4a7a98fac31ee91bac43cd2b73a9.tar.xz
linux-6b9b6f39946c4a7a98fac31ee91bac43cd2b73a9.zip
percpu: expose pcpu_nr_empty_pop_pages in pcpu_stats
Percpu memory holds a minimum threshold of pages that are populated in order to serve atomic percpu memory requests. This change makes it easier to verify that there are a minimum number of populated pages lying around. Signed-off-by: Dennis Zhou <dennisszhou@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'mm/percpu.c')
-rw-r--r--mm/percpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/percpu.c b/mm/percpu.c
index bd4130a69bbc..9ec5fd498f1d 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -160,7 +160,7 @@ static LIST_HEAD(pcpu_map_extend_chunks);
* The number of empty populated pages, protected by pcpu_lock. The
* reserved chunk doesn't contribute to the count.
*/
-static int pcpu_nr_empty_pop_pages;
+int pcpu_nr_empty_pop_pages;
/*
* Balance work is used to populate or destroy chunks asynchronously. We