diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2023-07-11 08:50:12 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-08-18 20:12:19 +0300 |
commit | 55c7ac4527086d52dedc5da4ee3d676bcc9a7691 (patch) | |
tree | 2b9da0860dcb6d8b75517503e9b018dd666b8fce /tools | |
parent | 80ee7cb271b52e5861eda3c67731c95fd55a2627 (diff) | |
download | linux-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