aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2023-08-01 20:37:23 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-08-21 13:37:32 -0700
commitebddd111fcd13fefd7350f77201dfc5605672909 (patch)
tree69c3d3111aa489e9e7ffbc82ac7ebaca3f3c53cd /include
parentperf/core: use vma_is_initial_stack() and vma_is_initial_heap() (diff)
downloadlinux-ebddd111fcd13fefd7350f77201dfc5605672909.tar.gz
linux-ebddd111fcd13fefd7350f77201dfc5605672909.zip
mm/page_alloc: avoid unneeded alike_pages calculation
When free_pages is 0, alike_pages is not used. So alike_pages calculation can be avoided by checking free_pages early to save cpu cycles. Also fix typo 'comparable'. It should be 'compatible' here. Link: https://lkml.kernel.org/r/20230801123723.2225543-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions