diff options
| author | Miaohe Lin <linmiaohe@huawei.com> | 2023-08-01 20:37:23 +0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2023-08-21 13:37:32 -0700 |
| commit | ebddd111fcd13fefd7350f77201dfc5605672909 (patch) | |
| tree | 69c3d3111aa489e9e7ffbc82ac7ebaca3f3c53cd /include | |
| parent | perf/core: use vma_is_initial_stack() and vma_is_initial_heap() (diff) | |
| download | linux-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
