|
@@ -284,17 +284,6 @@ static inline pte_t pfn_pte(unsigned long pfn, pgprot_t prot)
|
|
|
extern void start_mm_caching(struct mm_struct *mm);
|
|
|
extern void check_mm_caching(struct mm_struct *prev, struct mm_struct *next);
|
|
|
|
|
|
-/*
|
|
|
- * Support non-linear file mappings (see sys_remap_file_pages).
|
|
|
- * This is defined by CLIENT1 set but CLIENT0 and _PAGE_PRESENT clear, and the
|
|
|
- * file offset in the 32 high bits.
|
|
|
- */
|
|
|
-#define _PAGE_FILE HV_PTE_CLIENT1
|
|
|
-#define PTE_FILE_MAX_BITS 32
|
|
|
-#define pte_file(pte) (hv_pte_get_client1(pte) && !hv_pte_get_client0(pte))
|
|
|
-#define pte_to_pgoff(pte) ((pte).val >> 32)
|
|
|
-#define pgoff_to_pte(off) ((pte_t) { (((long long)(off)) << 32) | _PAGE_FILE })
|
|
|
-
|
|
|
/*
|
|
|
* Encode and de-code a swap entry (see <linux/swapops.h>).
|
|
|
* We put the swap file type+offset in the 32 high bits;
|