From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934404AbYDVOPT (ORCPT ); Tue, 22 Apr 2008 10:15:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763909AbYDVOKp (ORCPT ); Tue, 22 Apr 2008 10:10:45 -0400 Received: from host36-195-149-62.serverdedicati.aruba.it ([62.149.195.36]:41298 "EHLO mx.cpushare.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763601AbYDVOKl (ORCPT ); Tue, 22 Apr 2008 10:10:41 -0400 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH 11 of 12] XPMEM would have used sys_madvise() except that madvise_dontneed() X-Mercurial-Node: 128d705f38c8a774ac11559db445787ce6e91c77 Message-Id: <128d705f38c8a774ac11.1208872287@duo.random> In-Reply-To: Date: Tue, 22 Apr 2008 15:51:27 +0200 From: Andrea Arcangeli To: Christoph Lameter Cc: Nick Piggin , Jack Steiner , Peter Zijlstra , kvm-devel@lists.sourceforge.net, Kanoj Sarcar , Roland Dreier , Steve Wise , linux-kernel@vger.kernel.org, Avi Kivity , linux-mm@kvack.org, Robin Holt , general@lists.openfabrics.org, Hugh Dickins , akpm@linux-foundation.org, Rusty Russell Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org # HG changeset patch # User Andrea Arcangeli # Date 1208872187 -7200 # Node ID 128d705f38c8a774ac11559db445787ce6e91c77 # Parent f8210c45f1c6f8b38d15e5dfebbc5f7c1f890c93 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 @@ -909,6 +909,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.