memory: fix the argument passed to sync_alobal_pgds()
Subsystems (3)
PATCH 1/1 memory: fix the argument passed to sync_alobal_pgds()
The address rang of sync_global_pgds() should be [start, end], but we pass [start, end) to this function.
Cc Yasuaki Ishimatsu <[email protected]>
Cc David Rientjes <[email protected]>
Cc Jiang Liu <[email protected]>
Cc Minchan Kim <[email protected]>
Cc KOSAKI Motohiro <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Signed-off-by Wen Congyang <[email protected]>
--- arch/x86/mm/init_64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/mm/init_64.c +2 -2
@@ -605,7 +605,7 @@ kernel_physical_mapping_init(unsigned long start, }if (pgd_changed) -sync_global_pgds (addr, end); +sync_global_pgds (addr, end -1 );__flush_tlb_all ();
@@ -979,7 +979,7 @@ vmemmap_populate(struct page *start_page, unsigned long size, int node) } } -sync_global_pgds ((unsigned long )start_page, end); +sync_global_pgds ((unsigned long )start_page, end -1 );return 0 ; }
Signature · 7 lines
1.8.0 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>