]> git.baikalelectronics.ru Git - kernel.git/commit
percpu: fix starting offset for chunk statistics traversal
authorDennis Zhou <dennisszhou@gmail.com>
Wed, 27 Sep 2017 21:34:59 +0000 (16:34 -0500)
committerTejun Heo <tj@kernel.org>
Wed, 27 Sep 2017 21:45:57 +0000 (14:45 -0700)
commit1817b7dae64e4b8d06f13ca7b66e1a3f0afbc39d
tree0bd30c9717769551b38ce344a9293ad70c9ca31e
parent956b8c21b41a5c62b7605b702d1cbedbd2362e46
percpu: fix starting offset for chunk statistics traversal

This patch fixes the starting offset used when scanning chunks to
compute the chunk statistics. The value start_offset (and end_offset)
are managed in bytes while the traversal occurs over bits. Thus for the
reserved and dynamic chunk, it may incorrectly skip over the initial
allocations.

Signed-off-by: Dennis Zhou <dennisszhou@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/percpu-stats.c