* [to-be-updated] vmalloc-use-plain-pte_clear-for-unmaps.patch removed from -mm tree
@ 2011-05-18 21:37 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2011-05-18 21:37 UTC (permalink / raw)
To: jeremy.fitzhardinge, hugh.dickins, npiggin, mm-commits
The patch titled
vmalloc: use plain pte_clear() for unmaps
has been removed from the -mm tree. Its filename was
vmalloc-use-plain-pte_clear-for-unmaps.patch
This patch was dropped because an updated version will be merged
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: vmalloc: use plain pte_clear() for unmaps
From: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
ptep_get_and_clear() is potentially moderately expensive (at least an
atomic operation, or potentially a trap-and-fault when virtualized) so use
a plain pte_clear().
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Nick Piggin <npiggin@kernel.dk>
Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/vmalloc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff -puN mm/vmalloc.c~vmalloc-use-plain-pte_clear-for-unmaps mm/vmalloc.c
--- a/mm/vmalloc.c~vmalloc-use-plain-pte_clear-for-unmaps
+++ a/mm/vmalloc.c
@@ -39,8 +39,9 @@ static void vunmap_pte_range(pmd_t *pmd,
pte = pte_offset_kernel(pmd, addr);
do {
- pte_t ptent = ptep_get_and_clear(&init_mm, addr, pte);
+ pte_t ptent = *pte;
WARN_ON(!pte_none(ptent) && !pte_present(ptent));
+ pte_clear(&init_mm, addr, pte);
} while (pte++, addr += PAGE_SIZE, addr != end);
}
_
Patches currently in -mm which might be from jeremy.fitzhardinge@citrix.com are
linux-next.patch
vmalloc-use-apply_to_page_range_batch-for-vunmap_page_range.patch
vmalloc-use-apply_to_page_range_batch-for-vmap_page_range_noflush.patch
vmalloc-use-apply_to_page_range_batch-in-alloc_vm_area.patch
xen-mmu-use-apply_to_page_range_batch-in-xen_remap_domain_mfn_range.patch
xen-grant-table-use-apply_to_page_range_batch.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-18 21:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-18 21:37 [to-be-updated] vmalloc-use-plain-pte_clear-for-unmaps.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.