percpu: factor out pcpu_check_block_hint()
authorRoman Gushchin <guro@fb.com>
Thu, 8 Apr 2021 03:57:35 +0000 (20:57 -0700)
committerDennis Zhou <dennis@kernel.org>
Wed, 21 Apr 2021 18:17:35 +0000 (18:17 +0000)
commit8ea2e1e35d1eb4c76290ff5d565a1bfd6c24f117
tree1d42a0d34cb132f062ace0cc1b5d31214b37e984
parent67c2669d69fb5ada0f3b5123fb6ebf6fef9faee5
percpu: factor out pcpu_check_block_hint()

Factor out the pcpu_check_block_hint() helper, which will be useful
in the future. The new function checks if the allocation can likely
fit within the contig hint.

Signed-off-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
mm/percpu.c