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-i386 | |
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-i386')
-rw-r--r-- | include/asm-i386/pgtable.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/include/asm-i386/pgtable.h b/include/asm-i386/pgtable.h index afb1597ec173..c7fefa6b12fd 100644 --- a/include/asm-i386/pgtable.h +++ b/include/asm-i386/pgtable.h | |||
@@ -289,17 +289,6 @@ static inline pte_t native_local_ptep_get_and_clear(pte_t *ptep) | |||
289 | __changed; \ | 289 | __changed; \ |
290 | }) | 290 | }) |
291 | 291 | ||
292 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_DIRTY | ||
293 | #define ptep_test_and_clear_dirty(vma, addr, ptep) ({ \ | ||
294 | int __ret = 0; \ | ||
295 | if (pte_dirty(*(ptep))) \ | ||
296 | __ret = test_and_clear_bit(_PAGE_BIT_DIRTY, \ | ||
297 | &(ptep)->pte_low); \ | ||
298 | if (__ret) \ | ||
299 | pte_update((vma)->vm_mm, addr, ptep); \ | ||
300 | __ret; \ | ||
301 | }) | ||
302 | |||
303 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG | 292 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG |
304 | #define ptep_test_and_clear_young(vma, addr, ptep) ({ \ | 293 | #define ptep_test_and_clear_young(vma, addr, ptep) ({ \ |
305 | int __ret = 0; \ | 294 | int __ret = 0; \ |
@@ -311,16 +300,6 @@ static inline pte_t native_local_ptep_get_and_clear(pte_t *ptep) | |||
311 | __ret; \ | 300 | __ret; \ |
312 | }) | 301 | }) |
313 | 302 | ||
314 | #define __HAVE_ARCH_PTEP_CLEAR_DIRTY_FLUSH | ||
315 | #define ptep_clear_flush_dirty(vma, address, ptep) \ | ||
316 | ({ \ | ||
317 | int __dirty; \ | ||
318 | __dirty = ptep_test_and_clear_dirty((vma), (address), (ptep)); \ | ||
319 | if (__dirty) \ | ||
320 | flush_tlb_page(vma, address); \ | ||
321 | __dirty; \ | ||
322 | }) | ||
323 | |||
324 | #define __HAVE_ARCH_PTEP_CLEAR_YOUNG_FLUSH | 303 | #define __HAVE_ARCH_PTEP_CLEAR_YOUNG_FLUSH |
325 | #define ptep_clear_flush_young(vma, address, ptep) \ | 304 | #define ptep_clear_flush_young(vma, address, ptep) \ |
326 | ({ \ | 305 | ({ \ |