Commit 797a1ad6 authored by Roman Gushchin's avatar Roman Gushchin Committed by Zheng Zengkai
Browse files

percpu: factor out pcpu_check_block_hint()

mainline inclusion
from mainline-v5.14-rc1
commit 8ea2e1e3
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4BE79


CVE: NA

-------------------------------------------------
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: default avatarRoman Gushchin <guro@fb.com>
Signed-off-by: default avatarDennis Zhou <dennis@kernel.org>
Signed-off-by: default avatarDennis Zhou <dennis@kernel.org>
(cherry picked from commit 8ea2e1e3)
Signed-off-by: default avatarYuanzheng Song <songyuanzheng@huawei.com>
Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent daaca627
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment