diff options
| author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2015-02-10 17:10:09 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-10 17:30:31 -0500 |
| commit | b816157a5366550c5ee29a6431ba1abb88721266 (patch) | |
| tree | 1db62de6d0eb32a275ed4dabfa50e0fa1e0cded9 /arch/alpha/include | |
| parent | 5064c8e19dc215afae8ffae95570e7f22062d49c (diff) | |
alpha: drop _PAGE_FILE and pte_file()-related helpers
We've replaced remap_file_pages(2) implementation with emulation. Nobody
creates non-linear mapping anymore.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/alpha/include')
| -rw-r--r-- | arch/alpha/include/asm/pgtable.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/alpha/include/asm/pgtable.h b/arch/alpha/include/asm/pgtable.h index d8f9b7e89234..fce22cf88ee9 100644 --- a/arch/alpha/include/asm/pgtable.h +++ b/arch/alpha/include/asm/pgtable.h | |||
| @@ -73,7 +73,6 @@ struct vm_area_struct; | |||
| 73 | /* .. and these are ours ... */ | 73 | /* .. and these are ours ... */ |
| 74 | #define _PAGE_DIRTY 0x20000 | 74 | #define _PAGE_DIRTY 0x20000 |
| 75 | #define _PAGE_ACCESSED 0x40000 | 75 | #define _PAGE_ACCESSED 0x40000 |
| 76 | #define _PAGE_FILE 0x80000 /* set:pagecache, unset:swap */ | ||
| 77 | 76 | ||
| 78 | /* | 77 | /* |
| 79 | * NOTE! The "accessed" bit isn't necessarily exact: it can be kept exactly | 78 | * NOTE! The "accessed" bit isn't necessarily exact: it can be kept exactly |
| @@ -268,7 +267,6 @@ extern inline void pgd_clear(pgd_t * pgdp) { pgd_val(*pgdp) = 0; } | |||
| 268 | extern inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_FOW); } | 267 | extern inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_FOW); } |
| 269 | extern inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } | 268 | extern inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } |
| 270 | extern inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } | 269 | extern inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } |
| 271 | extern inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } | ||
| 272 | extern inline int pte_special(pte_t pte) { return 0; } | 270 | extern inline int pte_special(pte_t pte) { return 0; } |
| 273 | 271 | ||
| 274 | extern inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) |= _PAGE_FOW; return pte; } | 272 | extern inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) |= _PAGE_FOW; return pte; } |
| @@ -345,11 +343,6 @@ extern inline pte_t mk_swap_pte(unsigned long type, unsigned long offset) | |||
| 345 | #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) | 343 | #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) |
| 346 | #define __swp_entry_to_pte(x) ((pte_t) { (x).val }) | 344 | #define __swp_entry_to_pte(x) ((pte_t) { (x).val }) |
| 347 | 345 | ||
| 348 | #define pte_to_pgoff(pte) (pte_val(pte) >> 32) | ||
| 349 | #define pgoff_to_pte(off) ((pte_t) { ((off) << 32) | _PAGE_FILE }) | ||
| 350 | |||
| 351 | #define PTE_FILE_MAX_BITS 32 | ||
| 352 | |||
| 353 | #ifndef CONFIG_DISCONTIGMEM | 346 | #ifndef CONFIG_DISCONTIGMEM |
| 354 | #define kern_addr_valid(addr) (1) | 347 | #define kern_addr_valid(addr) (1) |
| 355 | #endif | 348 | #endif |
