public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] mm/apply_to_range: call pte function with lazy updates
@ 2008-11-13 17:19 Jeremy Fitzhardinge
  0 siblings, 0 replies; only message in thread
From: Jeremy Fitzhardinge @ 2008-11-13 17:19 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Nick Piggin, Linux Kernel Mailing List,
	Linux Memory Management List, Pallipadi, Venkatesh

Make the pte-level function in apply_to_range be called in lazy mmu
mode, so that any pagetable modifications can be batched.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
---
 mm/memory.c |    4 ++++
 1 file changed, 4 insertions(+)

===================================================================
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -1545,6 +1545,8 @@
 
 	BUG_ON(pmd_huge(*pmd));
 
+	arch_enter_lazy_mmu_mode();
+
 	token = pmd_pgtable(*pmd);
 
 	do {
@@ -1552,6 +1554,8 @@
 		if (err)
 			break;
 	} while (pte++, addr += PAGE_SIZE, addr != end);
+
+	arch_leave_lazy_mmu_mode();
 
 	if (mm != &init_mm)
 		pte_unmap_unlock(pte-1, ptl);



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-13 17:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-13 17:19 [PATCH 2/2] mm/apply_to_range: call pte function with lazy updates Jeremy Fitzhardinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox