aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mm_init.c
diff options
context:
space:
mode:
authorLeesoo Ahn <[email protected]>2024-06-10 15:15:28 +0000
committerAndrew Morton <[email protected]>2024-07-04 02:30:08 +0000
commitafb90a36c643112bc8cabefb71c110ee2b757ca3 (patch)
tree18aa1a1a53eab0ffac62db798564b47c066ae9af /mm/mm_init.c
parentmm/vmscan: avoid split lazyfree THP during shrink_folio_list() (diff)
downloadkernel-afb90a36c643112bc8cabefb71c110ee2b757ca3.tar.gz
kernel-afb90a36c643112bc8cabefb71c110ee2b757ca3.zip
mm/sparse: use MEMBLOCK_ALLOC_ACCESSIBLE enum instead of 0
Setting 'limit' variable to 0 might seem like it means "no limit". But in the memblock API, 0 actually means the 'MEMBLOCK_ALLOC_ACCESSIBLE' enum, which limits the physical address range end based on 'memblock.current_limit'. This could be confusing. Use the enum instead of 0 to make it clear. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Leesoo Ahn <[email protected]> Acked-by: Mike Rapoport (IBM) <[email protected]> Reviewed-by: Wei Yang <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/mm_init.c')
0 files changed, 0 insertions, 0 deletions