summaryrefslogtreecommitdiff
path: root/mm/bootmem.c
diff options
context:
space:
mode:
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>2017-07-24 19:02:07 -0400
committerTejun Heo <tj@kernel.org>2017-07-26 10:23:53 -0400
commit8ab16c43ea79098f4126432c6b199a5d6ba24b6d (patch)
tree60ae1a3d886790e05663a394e926a3f5fcd12d9b /mm/bootmem.c
parent560f2c23666853b31acc32c892d44f5b14d258de (diff)
downloadlinux-8ab16c43ea79098f4126432c6b199a5d6ba24b6d.tar.gz
linux-8ab16c43ea79098f4126432c6b199a5d6ba24b6d.tar.xz
percpu: change the number of pages marked in the first_chunk pop bitmap
The populated bitmap represents the state of the pages the chunk serves. Prior, the bitmap was marked completely used as the first chunk was allocated and immutable. This is misleading because the first chunk may not be completely filled. Additionally, with moving the base_addr up in the previous patch, the population check no longer corresponds to what was being checked. This patch modifies the population map to be only the number of pages the region serves and to make what it was checking correspond correctly again. The change is to remove any misunderstanding between the size of the populated bitmap and the actual size of it. The work function page iterators now use nr_pages for the check rather than pcpu_unit_pages because nr_populated is now chunk specific. Without this, the work function would try to populate the remainder of these chunks despite it not serving any more than nr_pages when nr_pages is set less than pcpu_unit_pages. 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/bootmem.c')
0 files changed, 0 insertions, 0 deletions