diff options
author | Wei Yang <[email protected]> | 2024-06-15 03:41:50 +0000 |
---|---|---|
committer | Johannes Berg <[email protected]> | 2024-07-03 12:22:39 +0200 |
commit | 5cd93c7532ea31108e83720cbe25589a4ee57c50 (patch) | |
tree | 46baff5082cfc4262195b4076d6dff8181de7554 /scripts/gdb/linux/interrupts.py | |
parent | ab0f4cedc3554f921691ce5b63d59e258154e799 (diff) |
um/mm: remove redundant assignment of max_low_pfn
Current calculation of max_low_pfn is introduced in commit af84eab20891
("[PATCH] uml: fix LVM crash"). It is intended to set max_low_pfn to the
same value as max_pfn.
But I am not sure why the max_pfn is set to totalram_pages, which
represents the number of usable pages in system instead of an absolute
page frame number. (The change history stops there.)
While we have already calculate it in setup_physmem(), so not necessary
to do it again.
Also this would help changing totalram_pages accounting, since we plan
to move the accounting into __free_pages_core(). With this change,
totalram_pages may not represent the total usable pages at this point,
since some pages would be deferred initialized.
Signed-off-by: Wei Yang <[email protected]>
CC: Jeff Dike <[email protected]>
Cc: Paolo 'Blaisorblade' Giarrusso <[email protected]>
Cc: Alasdair G Kergon <[email protected]>
CC: Andrew Morton <[email protected]>
CC: Mike Rapoport (IBM) <[email protected]>
CC: David Hildenbrand <[email protected]>
Acked-by: Mike Rapoport (IBM) <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions