diff options
| author | Wei Yang <[email protected]> | 2024-06-12 02:04:21 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-07-03 19:30:12 -0700 |
| commit | 972b89c1f05f49bac53ea977d20b49330b81b0fa (patch) | |
| tree | 9e8d3825fb093df0fc6f01ed29c254814a4d85cb /include/linux/timerqueue.h | |
| parent | e5d896703d1318d539a972ff01dc887c124af427 (diff) | |
mm/mm_init.c: simplify logic of deferred_[init|free]_pages
Function deferred_[init|free]_pages are only used in
deferred_init_maxorder(), which makes sure the range to init/free is
within MAX_ORDER_NR_PAGES size.
With this knowledge, we can simplify these two functions. Since
* only the first pfn could be IS_MAX_ORDER_ALIGNED()
Also since the range passed to deferred_[init|free]_pages is always from
memblock.memory for those we have already allocated memmap to cover,
pfn_valid() always return true. Then we can remove related check.
[[email protected]: adjust function declaration indention per David]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Wei Yang <[email protected]>
Reviewed-by: Mike Rapoport (IBM) <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: David Hildenbrand <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions