percpu: make pcpu_block_md generic
authorDennis Zhou <dennis@kernel.org>
Tue, 26 Feb 2019 17:56:16 +0000 (09:56 -0800)
committerDennis Zhou <dennis@kernel.org>
Wed, 13 Mar 2019 19:25:31 +0000 (12:25 -0700)
commit047924c96898266e9a37412434abd1db72600384
treef77d37338673405e89644bc682e08a8f7584aa03
parentda3afdd5bb5428fd38b4b64f2d5e897c3bb78354
percpu: make pcpu_block_md generic

In reality, a chunk is just a block covering a larger number of bits.
The hints themselves are one in the same. Rather than maintaining the
hints separately, first introduce nr_bits to genericize
pcpu_block_update() to correctly maintain block->right_free. The next
patch will convert chunk hints to be managed as a pcpu_block_md.

Signed-off-by: Dennis Zhou <dennis@kernel.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
mm/percpu-internal.h
mm/percpu.c