summaryrefslogtreecommitdiffstats
path: root/mm/percpu-stats.c
diff options
context:
space:
mode:
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>2017-07-25 01:02:00 +0200
committerTejun Heo <tj@kernel.org>2017-07-26 16:23:51 +0200
commit4af1e6fbd8e46dc44a89edf215207fd7c8d5cdda (patch)
treec550b7662c8e3c68988c42725982b42eaa91b677 /mm/percpu-stats.c
parentpercpu: introduce start_offset to pcpu_chunk (diff)
downloadlinux-4af1e6fbd8e46dc44a89edf215207fd7c8d5cdda.tar.xz
linux-4af1e6fbd8e46dc44a89edf215207fd7c8d5cdda.zip
percpu: remove has_reserved from pcpu_chunk
Prior this variable was used to manage statistics when the first chunk had a reserved region. The previous patch introduced start_offset to keep track of the offset by value rather than boolean. Therefore, has_reserved can be removed. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/percpu-stats.c b/mm/percpu-stats.c
index 44e561d3ab47..32f3550ea099 100644
--- a/mm/percpu-stats.c
+++ b/mm/percpu-stats.c
@@ -58,7 +58,7 @@ static void chunk_map_stats(struct seq_file *m, struct pcpu_chunk *chunk,
int cur_min_alloc = 0, cur_med_alloc = 0, cur_max_alloc = 0;
alloc_sizes = buffer;
- s_index = chunk->has_reserved ? 1 : 0;
+ s_index = (chunk->start_offset) ? 1 : 0;
/* find last allocation */
last_alloc = -1;