]> git.baikalelectronics.ru Git - kernel.git/commit
percpu: setup_first_chunk remove dyn_size and consolidate logic
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>
Mon, 24 Jul 2017 23:02:01 +0000 (19:02 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 26 Jul 2017 14:23:52 +0000 (10:23 -0400)
commit673ab122d2bc2f932cb2f8cf3449e361cf0f59c0
tree4d76780f72dcbaa017b7245c2dde295533670907
parentff6f9af588d7638dee3e0ade28364f368adf6c24
percpu: setup_first_chunk remove dyn_size and consolidate logic

There is logic for setting variables in the static chunk init code that
could be consolidated with the dynamic chunk init code. This combines
this logic to setup for combining the allocation paths. reserved_size is
used as the conditional as a dynamic region will always exist.

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