diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index c270fa68a32b..f710d32291e8 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -213,6 +213,10 @@ struct vm_fault { | |||
213 | * is set (which is also implied by | 213 | * is set (which is also implied by |
214 | * VM_FAULT_ERROR). | 214 | * VM_FAULT_ERROR). |
215 | */ | 215 | */ |
216 | /* for ->map_pages() only */ | ||
217 | pgoff_t max_pgoff; /* map pages for offset from pgoff till | ||
218 | * max_pgoff inclusive */ | ||
219 | pte_t *pte; /* pte entry associated with ->pgoff */ | ||
216 | }; | 220 | }; |
217 | 221 | ||
218 | /* | 222 | /* |
@@ -224,6 +228,7 @@ struct vm_operations_struct { | |||
224 | void (*open)(struct vm_area_struct * area); | 228 | void (*open)(struct vm_area_struct * area); |
225 | void (*close)(struct vm_area_struct * area); | 229 | void (*close)(struct vm_area_struct * area); |
226 | int (*fault)(struct vm_area_struct *vma, struct vm_fault *vmf); | 230 | int (*fault)(struct vm_area_struct *vma, struct vm_fault *vmf); |
231 | void (*map_pages)(struct vm_area_struct *vma, struct vm_fault *vmf); | ||
227 | 232 | ||
228 | /* notification that a previously read-only page is about to become | 233 | /* notification that a previously read-only page is about to become |
229 | * writable, if an error is returned it will cause a SIGBUS */ | 234 | * writable, if an error is returned it will cause a SIGBUS */ |
@@ -584,6 +589,9 @@ static inline pte_t maybe_mkwrite(pte_t pte, struct vm_area_struct *vma) | |||
584 | pte = pte_mkwrite(pte); | 589 | pte = pte_mkwrite(pte); |
585 | return pte; | 590 | return pte; |
586 | } | 591 | } |
592 | |||
593 | void do_set_pte(struct vm_area_struct *vma, unsigned long address, | ||
594 | struct page *page, pte_t *pte, bool write, bool anon); | ||
587 | #endif | 595 | #endif |
588 | 596 | ||
589 | /* | 597 | /* |