summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2023-07-11 08:50:12 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-08-18 20:12:19 +0300
commit55c7ac4527086d52dedc5da4ee3d676bcc9a7691 (patch)
tree2b9da0860dcb6d8b75517503e9b018dd666b8fce /tools
parent80ee7cb271b52e5861eda3c67731c95fd55a2627 (diff)
downloadlinux-55c7ac4527086d52dedc5da4ee3d676bcc9a7691.tar.xz
mm: memory-failure: use local variable huge to check hugetlb page
Use local variable huge to check whether page is hugetlb page to avoid calling PageHuge() multiple times to save cpu cycles. PageHuge() will be stable while extra page refcnt is held. Link: https://lkml.kernel.org/r/20230711055016.2286677-5-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions