From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx186.postini.com [74.125.245.186]) by kanga.kvack.org (Postfix) with SMTP id 65CC16B0070 for ; Mon, 26 Nov 2012 04:56:02 -0500 (EST) Message-ID: <50B33E35.2020106@cn.fujitsu.com> Date: Mon, 26 Nov 2012 18:02:29 +0800 From: Wen Congyang MIME-Version: 1.0 Subject: [PATCH] memory: fix the argument passed to sync_alobal_pgds() Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: To: lkml , linux-mm@kvack.org, Andrew Morton Cc: Minchan Kim , David Rientjes , Jiang Liu , Mel Gorman , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Yasuaki ISIMATU , KOSAKI Motohiro The address rang of sync_global_pgds() should be [start, end], but we pass [start, end) to this function. Cc: Yasuaki Ishimatsu Cc: David Rientjes Cc: Jiang Liu Cc: Minchan Kim Cc: KOSAKI Motohiro Cc: Andrew Morton Cc: Mel Gorman Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Signed-off-by: Wen Congyang --- arch/x86/mm/init_64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 3baff25..df50b43 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -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; } -- 1.8.0 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org