From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757349AbYDHP7c (ORCPT ); Tue, 8 Apr 2008 11:59:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754665AbYDHP5J (ORCPT ); Tue, 8 Apr 2008 11:57:09 -0400 Received: from host36-195-149-62.serverdedicati.aruba.it ([62.149.195.36]:59188 "EHLO mx.cpushare.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754551AbYDHP5G (ORCPT ); Tue, 8 Apr 2008 11:57:06 -0400 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH 8 of 9] XPMEM would have used sys_madvise() except that madvise_dontneed() X-Mercurial-Node: 3b14e26a4e0491f00bb989be04d8b7e0755ed2d7 Message-Id: <3b14e26a4e0491f00bb9.1207669451@duo.random> In-Reply-To: Date: Tue, 08 Apr 2008 17:44:11 +0200 From: Andrea Arcangeli To: Christoph Lameter Cc: akpm@linux-foundation.org, Nick Piggin , Steve Wise , Peter Zijlstra , linux-mm@kvack.org, Kanoj Sarcar , Roland Dreier , Jack Steiner , linux-kernel@vger.kernel.org, Avi Kivity , kvm-devel@lists.sourceforge.net, Robin Holt , general@lists.openfabrics.org, Hugh Dickins Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org # HG changeset patch # User Andrea Arcangeli # Date 1207666972 -7200 # Node ID 3b14e26a4e0491f00bb989be04d8b7e0755ed2d7 # Parent a0c52e4b9b71e2627238b69c0a58905097973279 XPMEM would have used sys_madvise() except that madvise_dontneed() returns an -EINVAL if VM_PFNMAP is set, which is always true for the pages XPMEM imports from other partitions and is also true for uncached pages allocated locally via the mspec allocator. XPMEM needs zap_page_range() functionality for these types of pages as well as 'normal' pages. Signed-off-by: Dean Nelson diff --git a/mm/memory.c b/mm/memory.c --- a/mm/memory.c +++ b/mm/memory.c @@ -900,6 +900,7 @@ return unmap_vmas(vma, address, end, &nr_accounted, details); } +EXPORT_SYMBOL_GPL(zap_page_range); /* * Do a quick page-table lookup for a single page.