m68k: 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: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
406b16e26d
commit
1eeda0abf4
@@ -38,8 +38,6 @@
|
||||
#define _PAGE_PRESENT (SUN3_PAGE_VALID)
|
||||
#define _PAGE_ACCESSED (SUN3_PAGE_ACCESSED)
|
||||
|
||||
#define PTE_FILE_MAX_BITS 28
|
||||
|
||||
/* Compound page protection values. */
|
||||
//todo: work out which ones *should* have SUN3_PAGE_NOCACHE and fix...
|
||||
// is it just PAGE_KERNEL and PAGE_SHARED?
|
||||
@@ -168,7 +166,6 @@ static inline void pgd_clear (pgd_t *pgdp) {}
|
||||
static inline int pte_write(pte_t pte) { return pte_val(pte) & SUN3_PAGE_WRITEABLE; }
|
||||
static inline int pte_dirty(pte_t pte) { return pte_val(pte) & SUN3_PAGE_MODIFIED; }
|
||||
static inline int pte_young(pte_t pte) { return pte_val(pte) & SUN3_PAGE_ACCESSED; }
|
||||
static inline int pte_file(pte_t pte) { return pte_val(pte) & SUN3_PAGE_ACCESSED; }
|
||||
static inline int pte_special(pte_t pte) { return 0; }
|
||||
|
||||
static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~SUN3_PAGE_WRITEABLE; return pte; }
|
||||
@@ -202,18 +199,6 @@ static inline pmd_t *pmd_offset (pgd_t *pgd, unsigned long address)
|
||||
return (pmd_t *) pgd;
|
||||
}
|
||||
|
||||
static inline unsigned long pte_to_pgoff(pte_t pte)
|
||||
{
|
||||
return pte.pte & SUN3_PAGE_PGNUM_MASK;
|
||||
}
|
||||
|
||||
static inline pte_t pgoff_to_pte(unsigned off)
|
||||
{
|
||||
pte_t pte = { off + SUN3_PAGE_ACCESSED };
|
||||
return pte;
|
||||
}
|
||||
|
||||
|
||||
/* Find an entry in the third-level pagetable. */
|
||||
#define pte_index(address) ((address >> PAGE_SHIFT) & (PTRS_PER_PTE-1))
|
||||
#define pte_offset_kernel(pmd, address) ((pte_t *) __pmd_page(*pmd) + pte_index(address))
|
||||
|
Reference in New Issue
Block a user