diff options
Diffstat (limited to 'include/linux/rmap.h')
| -rw-r--r-- | include/linux/rmap.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/rmap.h b/include/linux/rmap.h index bf97b0900014..db2c1df4fef9 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h | |||
| @@ -103,6 +103,14 @@ pte_t *page_check_address(struct page *, struct mm_struct *, | |||
| 103 | */ | 103 | */ |
| 104 | unsigned long page_address_in_vma(struct page *, struct vm_area_struct *); | 104 | unsigned long page_address_in_vma(struct page *, struct vm_area_struct *); |
| 105 | 105 | ||
| 106 | /* | ||
| 107 | * Cleans the PTEs of shared mappings. | ||
| 108 | * (and since clean PTEs should also be readonly, write protects them too) | ||
| 109 | * | ||
| 110 | * returns the number of cleaned PTEs. | ||
| 111 | */ | ||
| 112 | int page_mkclean(struct page *); | ||
| 113 | |||
| 106 | #else /* !CONFIG_MMU */ | 114 | #else /* !CONFIG_MMU */ |
| 107 | 115 | ||
| 108 | #define anon_vma_init() do {} while (0) | 116 | #define anon_vma_init() do {} while (0) |
| @@ -112,6 +120,12 @@ unsigned long page_address_in_vma(struct page *, struct vm_area_struct *); | |||
| 112 | #define page_referenced(page,l) TestClearPageReferenced(page) | 120 | #define page_referenced(page,l) TestClearPageReferenced(page) |
| 113 | #define try_to_unmap(page, refs) SWAP_FAIL | 121 | #define try_to_unmap(page, refs) SWAP_FAIL |
| 114 | 122 | ||
| 123 | static inline int page_mkclean(struct page *page) | ||
| 124 | { | ||
| 125 | return 0; | ||
| 126 | } | ||
| 127 | |||
| 128 | |||
| 115 | #endif /* CONFIG_MMU */ | 129 | #endif /* CONFIG_MMU */ |
| 116 | 130 | ||
| 117 | /* | 131 | /* |
