diff options
Diffstat (limited to 'include/linux/userfaultfd_k.h')
-rw-r--r-- | include/linux/userfaultfd_k.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/userfaultfd_k.h b/include/linux/userfaultfd_k.h index 2521542f6c07..a40be5d0661b 100644 --- a/include/linux/userfaultfd_k.h +++ b/include/linux/userfaultfd_k.h | |||
@@ -66,6 +66,12 @@ extern void userfaultfd_remove(struct vm_area_struct *vma, | |||
66 | unsigned long start, | 66 | unsigned long start, |
67 | unsigned long end); | 67 | unsigned long end); |
68 | 68 | ||
69 | extern int userfaultfd_unmap_prep(struct vm_area_struct *vma, | ||
70 | unsigned long start, unsigned long end, | ||
71 | struct list_head *uf); | ||
72 | extern void userfaultfd_unmap_complete(struct mm_struct *mm, | ||
73 | struct list_head *uf); | ||
74 | |||
69 | #else /* CONFIG_USERFAULTFD */ | 75 | #else /* CONFIG_USERFAULTFD */ |
70 | 76 | ||
71 | /* mm helpers */ | 77 | /* mm helpers */ |
@@ -118,6 +124,18 @@ static inline void userfaultfd_remove(struct vm_area_struct *vma, | |||
118 | unsigned long end) | 124 | unsigned long end) |
119 | { | 125 | { |
120 | } | 126 | } |
127 | |||
128 | static inline int userfaultfd_unmap_prep(struct vm_area_struct *vma, | ||
129 | unsigned long start, unsigned long end, | ||
130 | struct list_head *uf) | ||
131 | { | ||
132 | return 0; | ||
133 | } | ||
134 | |||
135 | static inline void userfaultfd_unmap_complete(struct mm_struct *mm, | ||
136 | struct list_head *uf) | ||
137 | { | ||
138 | } | ||
121 | #endif /* CONFIG_USERFAULTFD */ | 139 | #endif /* CONFIG_USERFAULTFD */ |
122 | 140 | ||
123 | #endif /* _LINUX_USERFAULTFD_K_H */ | 141 | #endif /* _LINUX_USERFAULTFD_K_H */ |