summaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2023-07-11 13:50:12 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-08-18 10:12:19 -0700
commit55c7ac4527086d52dedc5da4ee3d676bcc9a7691 (patch)
tree2b9da0860dcb6d8b75517503e9b018dd666b8fce /lib/memory-notifier-error-inject.c
parent80ee7cb271b52e5861eda3c67731c95fd55a2627 (diff)
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 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions