aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64/pgtable.h
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2007-07-17 07:03:03 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-17 13:22:59 -0400
commite21ea246bce5bb93dd822de420172ec280aed492 (patch)
treed624d1257728d8d869d54420c83d4bf4c4e19189 /include/asm-x86_64/pgtable.h
parentf0e47c229b489e37ba7e4159ef7f9cf9ccd44e19 (diff)
mm: remove ptep_test_and_clear_dirty and ptep_clear_flush_dirty
Nobody is using ptep_test_and_clear_dirty and ptep_clear_flush_dirty. Remove the functions from all architectures. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-x86_64/pgtable.h')
-rw-r--r--include/asm-x86_64/pgtable.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/asm-x86_64/pgtable.h b/include/asm-x86_64/pgtable.h
index 4f169ac6b10a..3ba53099297d 100644
--- a/include/asm-x86_64/pgtable.h
+++ b/include/asm-x86_64/pgtable.h
@@ -284,13 +284,6 @@ static inline pte_t pte_clrhuge(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) &
284 284
285struct vm_area_struct; 285struct vm_area_struct;
286 286
287static inline int ptep_test_and_clear_dirty(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep)
288{
289 if (!pte_dirty(*ptep))
290 return 0;
291 return test_and_clear_bit(_PAGE_BIT_DIRTY, &ptep->pte);
292}
293
294static inline int ptep_test_and_clear_young(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep) 287static inline int ptep_test_and_clear_young(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep)
295{ 288{
296 if (!pte_young(*ptep)) 289 if (!pte_young(*ptep))
@@ -427,7 +420,6 @@ extern int kern_addr_valid(unsigned long addr);
427 (((o) & (1UL << (__VIRTUAL_MASK_SHIFT-1))) ? ((o) | (~__VIRTUAL_MASK)) : (o)) 420 (((o) & (1UL << (__VIRTUAL_MASK_SHIFT-1))) ? ((o) | (~__VIRTUAL_MASK)) : (o))
428 421
429#define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG 422#define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG
430#define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_DIRTY
431#define __HAVE_ARCH_PTEP_GET_AND_CLEAR 423#define __HAVE_ARCH_PTEP_GET_AND_CLEAR
432#define __HAVE_ARCH_PTEP_GET_AND_CLEAR_FULL 424#define __HAVE_ARCH_PTEP_GET_AND_CLEAR_FULL
433#define __HAVE_ARCH_PTEP_SET_WRPROTECT 425#define __HAVE_ARCH_PTEP_SET_WRPROTECT