]> asedeno.scripts.mit.edu Git - linux.git/commit
percpu: use block scan_hint to only scan forward
authorDennis Zhou <dennis@kernel.org>
Mon, 25 Feb 2019 22:10:15 +0000 (14:10 -0800)
committerDennis Zhou <dennis@kernel.org>
Wed, 13 Mar 2019 19:25:31 +0000 (12:25 -0700)
commitda3afdd5bb5428fd38b4b64f2d5e897c3bb78354
tree561003eb63655cdbb8f8bae8912b46a8f0f5e93b
parentb89462a9c5f4a3ac5160e7b3599bb09c94b94880
percpu: use block scan_hint to only scan forward

Blocks now remember the latest scan_hint. This can be used on the
allocation path as when a contig_hint is broken, we can promote the
scan_hint to the contig_hint and scan forward from there. This works
because pcpu_block_refresh_hint() is only called on the allocation path
while block free regions are updated manually in
pcpu_block_update_hint_free().

Signed-off-by: Dennis Zhou <dennis@kernel.org>
mm/percpu.c