]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - mm/percpu-internal.h
percpu: end chunk area maps page aligned for the populated bitmap
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>
Mon, 24 Jul 2017 23:02:03 +0000 (19:02 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 26 Jul 2017 14:23:52 +0000 (10:23 -0400)
commit6b9d7c8e8ecf35dc9ba6763a45d81e54ee3ffcde
tree840107bd729b045342ff0296aefa8e017aae173c
parent10edf5b0b6e238f9102c88df8b92ba7ce8fdcc46
percpu: end chunk area maps page aligned for the populated bitmap

The area map allocator manages the first chunk area by hiding all but
the region it is responsible for serving in the area map. To align this
with the populated page bitmap, end_offset is introduced to keep track
of the delta to end page aligned. The area map is appended with the
page aligned end when necessary to be in line with how the bitmap
allocator requires the ending to be aligned with the LCM of PAGE_SIZE
and the size of each bitmap block. percpu_stats is updated to ignore
this region when present.

Signed-off-by: Dennis Zhou <dennisszhou@gmail.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/percpu-internal.h
mm/percpu-stats.c
mm/percpu.c