diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-07-17 07:03:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:22:59 -0400 |
commit | e21ea246bce5bb93dd822de420172ec280aed492 (patch) | |
tree | d624d1257728d8d869d54420c83d4bf4c4e19189 /include/asm-ia64/pgtable.h | |
parent | f0e47c229b489e37ba7e4159ef7f9cf9ccd44e19 (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-ia64/pgtable.h')
-rw-r--r-- | include/asm-ia64/pgtable.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/asm-ia64/pgtable.h b/include/asm-ia64/pgtable.h index 47642e06b920..de6d01e24dd0 100644 --- a/include/asm-ia64/pgtable.h +++ b/include/asm-ia64/pgtable.h | |||
@@ -395,22 +395,6 @@ ptep_test_and_clear_young (struct vm_area_struct *vma, unsigned long addr, pte_t | |||
395 | #endif | 395 | #endif |
396 | } | 396 | } |
397 | 397 | ||
398 | static inline int | ||
399 | ptep_test_and_clear_dirty (struct vm_area_struct *vma, unsigned long addr, pte_t *ptep) | ||
400 | { | ||
401 | #ifdef CONFIG_SMP | ||
402 | if (!pte_dirty(*ptep)) | ||
403 | return 0; | ||
404 | return test_and_clear_bit(_PAGE_D_BIT, ptep); | ||
405 | #else | ||
406 | pte_t pte = *ptep; | ||
407 | if (!pte_dirty(pte)) | ||
408 | return 0; | ||
409 | set_pte_at(vma->vm_mm, addr, ptep, pte_mkclean(pte)); | ||
410 | return 1; | ||
411 | #endif | ||
412 | } | ||
413 | |||
414 | static inline pte_t | 398 | static inline pte_t |
415 | ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) | 399 | ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) |
416 | { | 400 | { |
@@ -590,7 +574,6 @@ extern void lazy_mmu_prot_update (pte_t pte); | |||
590 | #endif | 574 | #endif |
591 | 575 | ||
592 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG | 576 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG |
593 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_DIRTY | ||
594 | #define __HAVE_ARCH_PTEP_GET_AND_CLEAR | 577 | #define __HAVE_ARCH_PTEP_GET_AND_CLEAR |
595 | #define __HAVE_ARCH_PTEP_SET_WRPROTECT | 578 | #define __HAVE_ARCH_PTEP_SET_WRPROTECT |
596 | #define __HAVE_ARCH_PTE_SAME | 579 | #define __HAVE_ARCH_PTE_SAME |