]> git.baikalelectronics.ru Git - kernel.git/commit
percpu: update alloc path to only scan if contig hints are broken
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>
Mon, 24 Jul 2017 23:02:16 +0000 (19:02 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 26 Jul 2017 21:41:06 +0000 (17:41 -0400)
commite8bde0ae3d26403e5e0ac4bb2a28f8380fb06927
tree3384725859de4b8f449e393d5cef89c00a26dae5
parent1c94b38ce02d2460c5cd0c982a9ce71a9f599060
percpu: update alloc path to only scan if contig hints are broken

Metadata is kept per block to keep track of where the contig hints are.
Scanning can be avoided when the contig hints are not broken. In that
case, left and right contigs have to be managed manually.

This patch changes the allocation path hint updating to only scan when
contig hints are broken.

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