Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754681AbYC1QmA (ORCPT ); Fri, 28 Mar 2008 12:42:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751089AbYC1Qlw (ORCPT ); Fri, 28 Mar 2008 12:41:52 -0400 Received: from mail06.svc.cra.dublin.eircom.net ([159.134.118.22]:33957 "HELO mail06.svc.cra.dublin.eircom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750961AbYC1Qlv (ORCPT ); Fri, 28 Mar 2008 12:41:51 -0400 From: Mark McLoughlin To: jeremy@goop.org Cc: linux-kernel@vger.kernel.org, mingo@elte.hu, xen-devel@lists.xensource.com, Mark McLoughlin Subject: [PATCH 3/3] xen: Clear PG_pinned in release_{pte,pmd}() Date: Fri, 28 Mar 2008 16:38:17 +0000 Message-Id: <1206722297-11763-4-git-send-email-markmc@redhat.com> X-Mailer: git-send-email 1.5.4.1 In-Reply-To: <1206722297-11763-3-git-send-email-markmc@redhat.com> References: <1206722297-11763-1-git-send-email-markmc@redhat.com> <1206722297-11763-2-git-send-email-markmc@redhat.com> <1206722297-11763-3-git-send-email-markmc@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 968 Lines: 30 We don't currently clear PG_pinned in release_pt(), probably because the page is to be freed anyway, but it jumps out as an obvious gap in the logic so add clear the flag for consistency sake. Signed-off-by: Mark McLoughlin --- arch/x86/xen/enlighten.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 0ce225f..8c5ff24 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -719,6 +719,7 @@ static void xen_release_ptpage(u32 pfn, unsigned level) pin_pagetable_pfn(MMUEXT_UNPIN_TABLE, pfn); make_lowmem_page_readwrite(__va(PFN_PHYS(pfn))); } + ClearPagePinned(page); } } -- 1.5.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/