percpu: setup_first_chunk enforce dynamic region must exist
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>
Mon, 24 Jul 2017 23:01:58 +0000 (19:01 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 26 Jul 2017 14:23:51 +0000 (10:23 -0400)
commitfb29a2cc6b06e057ab7153a85190a96f66498ff4
tree3b414d4a7b0e0ef61db02ccdc8255973d2f78e5e
parent9c01516278ef872190fdda95aafaa8effdf6649a
percpu: setup_first_chunk enforce dynamic region must exist

The first chunk is handled as a special case as it is composed of the
static, reserved, and dynamic regions. The code handles each case
individually. The next several patches will merge these code paths and
lay the foundation for the bitmap allocator.

This patch modifies logic to enforce that a dynamic region exists and
changes the area map to account for that. This brings the logic closer
to the dynamic chunk's init logic.

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.c