From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx152.postini.com [74.125.245.152]) by kanga.kvack.org (Postfix) with SMTP id 6AB986B00DD for ; Wed, 3 Oct 2012 19:52:24 -0400 (EDT) From: Andrea Arcangeli Subject: [PATCH 26/33] autonuma: reset autonuma page data when pages are freed Date: Thu, 4 Oct 2012 01:51:08 +0200 Message-Id: <1349308275-2174-27-git-send-email-aarcange@redhat.com> In-Reply-To: <1349308275-2174-1-git-send-email-aarcange@redhat.com> References: <1349308275-2174-1-git-send-email-aarcange@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Linus Torvalds , Andrew Morton , Peter Zijlstra , Ingo Molnar , Mel Gorman , Hugh Dickins , Rik van Riel , Johannes Weiner , Hillf Danton , Andrew Jones , Dan Smith , Thomas Gleixner , Paul Turner , Christoph Lameter , Suresh Siddha , Mike Galbraith , "Paul E. McKenney" , Lai Jiangshan , Bharata B Rao , Lee Schermerhorn , Srivatsa Vaddagiri , Alex Shi , Mauricio Faria de Oliveira , Konrad Rzeszutek Wilk , Don Morris , Benjamin Herrenschmidt This initializes the last_nid data at page freeing time, so when pages are allocated later we can identify the first NUMA hinting page fault happening on them. Signed-off-by: Andrea Arcangeli --- mm/page_alloc.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index ef69743..e096742 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -619,6 +619,9 @@ static inline int free_pages_check(struct page *page) bad_page(page); return 1; } +#ifdef CONFIG_AUTONUMA + page->autonuma_last_nid = -1; +#endif if (page->flags & PAGE_FLAGS_CHECK_AT_PREP) page->flags &= ~PAGE_FLAGS_CHECK_AT_PREP; return 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