From: "Jan Beulich" Subject: [PATCH] linux/i386: fix ordering in pte_free_kernel() Date: Fri, 18 Jul 2008 10:38:48 +0100 Message-ID: <488080C8.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Almost as usual, written and tested on 2.6.16.60 and made apply to the 2.6.18 tree without further testing. Signed-off-by: Jan Beulich Index: sle10sp2-2008-07-16/include/asm-i386/mach-xen/asm/pgalloc.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sle10sp2-2008-07-16.orig/include/asm-i386/mach-xen/asm/pgalloc.h = 2007-12-10 10:34:42.000000000 +0100 +++ sle10sp2-2008-07-16/include/asm-i386/mach-xen/asm/pgalloc.h 2008-07-16 = 10:19:55.000000000 +0200 @@ -36,8 +36,8 @@ extern struct page *pte_alloc_one(struct =20 static inline void pte_free_kernel(pte_t *pte) { - free_page((unsigned long)pte); make_lowmem_page_writable(pte, XENFEAT_writable_page_tables); + free_page((unsigned long)pte); } =20 extern void pte_free(struct page *pte);