summaryrefslogtreecommitdiffstats
path: root/mm/percpu-stats.c
diff options
context:
space:
mode:
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>2017-07-24 19:02:13 -0400
committerTejun Heo <tj@kernel.org>2017-07-26 17:41:05 -0400
commit86b442fbce74d6cd0805410ef228776cbd0338d7 (patch)
tree1d1fb3282d54d73cc47c0ba7f8a09a9050db23ae /mm/percpu-stats.c
parentca460b3c96274d79f84b31a3fea23a6eed479917 (diff)
downloadlinux-86b442fbce74d6cd0805410ef228776cbd0338d7.tar.bz2
percpu: add first_bit to keep track of the first free in the bitmap
This patch adds first_bit to keep track of the first free bit in the bitmap. This hint helps prevent scanning of fully allocated blocks. Signed-off-by: Dennis Zhou <dennisszhou@gmail.com> Reviewed-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'mm/percpu-stats.c')
-rw-r--r--mm/percpu-stats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/percpu-stats.c b/mm/percpu-stats.c
index ad03d73aa5fe..6142484e88f7 100644
--- a/mm/percpu-stats.c
+++ b/mm/percpu-stats.c
@@ -121,6 +121,7 @@ static void chunk_map_stats(struct seq_file *m, struct pcpu_chunk *chunk,
P("nr_alloc", chunk->nr_alloc);
P("max_alloc_size", chunk->max_alloc_size);
P("empty_pop_pages", chunk->nr_empty_pop_pages);
+ P("first_bit", chunk->first_bit);
P("free_bytes", chunk->free_bytes);
P("contig_bytes", chunk->contig_bits * PCPU_MIN_ALLOC_SIZE);
P("sum_frag", sum_frag);