percpu: use chunk scan_hint to skip some scanning
authorDennis Zhou <dennis@kernel.org>
Tue, 26 Feb 2019 18:46:48 +0000 (10:46 -0800)
committerDennis Zhou <dennis@kernel.org>
Wed, 13 Mar 2019 19:25:31 +0000 (12:25 -0700)
commitd33d9f3dd96ba290bad3929f82990a0a7467ae90
tree2f3e352dfab6d4049af8070168029bc3787b389a
parent92c14cab43267411bc9160f23d55a7548d814483
percpu: use chunk scan_hint to skip some scanning

Just like blocks, chunks now maintain a scan_hint. This can be used to
skip some scanning by promoting the scan_hint to be the contig_hint.
The chunk's scan_hint is primarily updated on the backside and relies on
full scanning when a block becomes free or the free region spans across
blocks.

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